1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/10272] AJAXified the add / remove friend / foe links.

PHPBB3-10272
This commit is contained in:
Callum Macrae
2011-08-18 18:34:09 +01:00
committed by Igor Wiedler
parent bb7a03f738
commit 59031fdc73
2 changed files with 10 additions and 5 deletions

View File

@@ -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();
}
});;