aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/script.js
diff options
context:
space:
mode:
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();
}
});;