diff options
author | Callum Macrae <callum@lynxphp.com> | 2011-08-18 18:34:09 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:09:12 +0200 |
commit | 59031fdc735a80502ea2cda3683a9276da5649cd (patch) | |
tree | 342e5e8ebb8a14d26a17ce395306b6e08fde4a9c /phpBB/styles/script.js | |
parent | bb7a03f738c97dc225873691c459f2bf9e612ef6 (diff) | |
download | forums-59031fdc735a80502ea2cda3683a9276da5649cd.tar forums-59031fdc735a80502ea2cda3683a9276da5649cd.tar.gz forums-59031fdc735a80502ea2cda3683a9276da5649cd.tar.bz2 forums-59031fdc735a80502ea2cda3683a9276da5649cd.tar.xz forums-59031fdc735a80502ea2cda3683a9276da5649cd.zip |
[ticket/10272] AJAXified the add / remove friend / foe links.
PHPBB3-10272
Diffstat (limited to 'phpBB/styles/script.js')
-rw-r--r-- | phpBB/styles/script.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/styles/script.js b/phpBB/styles/script.js index 35c99464bd..d17a2cdc10 100644 --- a/phpBB/styles/script.js +++ b/phpBB/styles/script.js @@ -346,7 +346,12 @@ phpbb.add_ajax_callback('post_delete', function(el) { tr.next().find('.up').html('<a href="' + tr.data('up') + '"><img src="./images/icon_up.gif" alt="Move up" title="Move up" /></a>'); 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]); + $($('.zebra').get(1)).remove(); + } +});; |