mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
[feature/ajax] Better handling for zebra
Better handling for zebra: message is displayed instead of first .zebra. Other .zebra entries are emptied, but not completely removed to avoid changing layout. PHPBB3-10272
This commit is contained in:
committed by
Igor Wiedler
parent
8a0d8c0a84
commit
2ede0b1c81
@@ -41,8 +41,8 @@ phpbb.add_ajax_callback('zebra', function(res) {
|
|||||||
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
zebra = $('.zebra');
|
zebra = $('.zebra');
|
||||||
zebra.html(res.MESSAGE_TEXT);
|
zebra.first().html(res.MESSAGE_TEXT);
|
||||||
$(zebra.get(1)).remove();
|
zebra.not(':first').html(' ').prev().html(' ');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user