mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00: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:
parent
8a0d8c0a84
commit
2ede0b1c81
1 changed files with 2 additions and 2 deletions
|
@ -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(' ');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue