1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Merge remote-tracking branch 'prototech/ticket/12640' into develop-ascraeus

* prototech/ticket/12640:
  [ticket/12640] Preserve the active tab when previewing in posting page.
This commit is contained in:
Marc Alexander
2014-06-04 23:25:48 +02:00
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');