diff options
| author | Vjacheslav Trushkin <arty@phpbb.com> | 2012-02-09 17:10:16 +0200 |
|---|---|---|
| committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:09:25 +0200 |
| commit | 2ede0b1c811657827c388c4a0559063f4f02f025 (patch) | |
| tree | 557d28033549c64ae6ddcd63f370c54a6f9bbf97 /phpBB | |
| parent | 8a0d8c0a84e119121bc9bd69c757aa4776d42acb (diff) | |
| download | forums-2ede0b1c811657827c388c4a0559063f4f02f025.tar forums-2ede0b1c811657827c388c4a0559063f4f02f025.tar.gz forums-2ede0b1c811657827c388c4a0559063f4f02f025.tar.bz2 forums-2ede0b1c811657827c388c4a0559063f4f02f025.tar.xz forums-2ede0b1c811657827c388c4a0559063f4f02f025.zip | |
[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
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/styles/prosilver/template/ajax.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index 739648200b..35e8d6c0b4 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -41,8 +41,8 @@ phpbb.add_ajax_callback('zebra', function(res) { if (res.success) { zebra = $('.zebra'); - zebra.html(res.MESSAGE_TEXT); - $(zebra.get(1)).remove(); + zebra.first().html(res.MESSAGE_TEXT); + zebra.not(':first').html(' ').prev().html(' '); } }); |
