aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/script.js
diff options
context:
space:
mode:
authorCallum Macrae <callum@lynxphp.com>2011-08-19 18:11:58 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-03-31 02:09:14 +0200
commit082c5c5b328e10e3fa99beaff31c4bc28f73bbd0 (patch)
tree2d1c55c4868f45c5ac2a9d178259dcc866796c7d /phpBB/styles/script.js
parent83095c2a2d31b81a5f8a9bf5b61f8f2f3976e38a (diff)
downloadforums-082c5c5b328e10e3fa99beaff31c4bc28f73bbd0.tar
forums-082c5c5b328e10e3fa99beaff31c4bc28f73bbd0.tar.gz
forums-082c5c5b328e10e3fa99beaff31c4bc28f73bbd0.tar.bz2
forums-082c5c5b328e10e3fa99beaff31c4bc28f73bbd0.tar.xz
forums-082c5c5b328e10e3fa99beaff31c4bc28f73bbd0.zip
[ticket/10272] Zebra operations using AJAX are now less hacky.
Before, they were splitting stuff by the <br />, and now JSON::add() is being used. PHPBB3-10272
Diffstat (limited to 'phpBB/styles/script.js')
-rw-r--r--phpBB/styles/script.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/script.js b/phpBB/styles/script.js
index 04e768e21e..f1fe2b9a10 100644
--- a/phpBB/styles/script.js
+++ b/phpBB/styles/script.js
@@ -364,8 +364,8 @@ phpbb.add_ajax_callback('post_delete', function(el) {
phpbb.ajaxify({selector: tr.next().find('.up').children('a')}, false, 'forum_up');
}
}).add_ajax_callback('zebra', function(el, res) {
- if (res.MESSAGE_TEXT.indexOf('successfully') !== -1) {
- $('.zebra').html(res.MESSAGE_TEXT.split('<br')[0]);
+ if (res.success) {
+ $('.zebra').html(res.message);
$($('.zebra').get(1)).remove();
}
});;