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:
committed by
Igor Wiedler
parent
bb7a03f738
commit
59031fdc73
@@ -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();
|
||||
}
|
||||
});;
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user