1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 05:34:01 +02:00

[ticket/12640] Preserve the active tab when previewing in posting page.

PHPBB3-12640
This commit is contained in:
Cesar G
2014-05-31 10:12:24 -07:00
parent 9c2687ddc9
commit 95b9c93892
4 changed files with 4 additions and 1 deletions

View File

@@ -117,6 +117,7 @@ jQuery(document).ready(function() {
if (typeof(p) === 'string') {
show_panel = p;
}
$('input[name="show_panel"]').val(show_panel);
for (i = 0; i < panels.length; i++) {
jQuery('#' + panels[i]).css('display', panels[i] === show_panel ? 'block' : 'none');