diff options
author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-07-11 10:58:18 -0400 |
---|---|---|
committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-07-11 10:58:18 -0400 |
commit | a9259b12aa07057c3b9e3575b1429b16bfdb9509 (patch) | |
tree | 0b374a85768f5378bbbde62a54e92dc564d2cd42 /phpBB/styles | |
parent | 6599cabed7b52fd1822846e7fdc1e647058f9135 (diff) | |
download | forums-a9259b12aa07057c3b9e3575b1429b16bfdb9509.tar forums-a9259b12aa07057c3b9e3575b1429b16bfdb9509.tar.gz forums-a9259b12aa07057c3b9e3575b1429b16bfdb9509.tar.bz2 forums-a9259b12aa07057c3b9e3575b1429b16bfdb9509.tar.xz forums-a9259b12aa07057c3b9e3575b1429b16bfdb9509.zip |
[ticket/11563] Dynamically generate panels list
PHPBB3-11563
Diffstat (limited to 'phpBB/styles')
-rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 5 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/mcp_topic.html | 2 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/posting_editor.html | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index d4a4f3e83d..0f11fd7b7a 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -109,7 +109,10 @@ function dE(n, s, type) { jQuery(document).ready(function() { jQuery('.sub-panels').each(function() { - var panels = this.getAttribute('data-panels').split(','), + var panels = [], + childNodes = jQuery('a[data-subpanel]', this).each(function() { + panels.push(this.getAttribute('data-subpanel')); + }), show_panel = this.getAttribute('data-show-panel'); if (panels.length) { diff --git a/phpBB/styles/prosilver/template/mcp_topic.html b/phpBB/styles/prosilver/template/mcp_topic.html index 130824b7b3..5d4270c2d3 100644 --- a/phpBB/styles/prosilver/template/mcp_topic.html +++ b/phpBB/styles/prosilver/template/mcp_topic.html @@ -11,7 +11,7 @@ <!-- DEFINE $SHOW_PANEL = 'display-panel' --> <!-- ENDIF --> -<div id="minitabs" class="sub-panels" data-show-panel="{$SHOW_PANEL}" data-panels="display-panel,split-panel,merge-panel"> +<div id="minitabs" class="sub-panels" data-show-panel="{$SHOW_PANEL}"> <ul> <li id="display-panel-tab"<!-- IF not S_MERGE_VIEW --> class="activetab"<!-- ENDIF -->> <a href="#minitabs" data-subpanel="display-panel"><span>{L_DISPLAY_OPTIONS}</span></a> diff --git a/phpBB/styles/prosilver/template/posting_editor.html b/phpBB/styles/prosilver/template/posting_editor.html index c381cfe0ed..2e6f291913 100644 --- a/phpBB/styles/prosilver/template/posting_editor.html +++ b/phpBB/styles/prosilver/template/posting_editor.html @@ -193,7 +193,7 @@ <!-- ENDIF --> <!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 --> - <div id="tabs" class="sub-panels" data-show-panel="options-panel" data-panels="options-panel,attach-panel,poll-panel"> + <div id="tabs" class="sub-panels" data-show-panel="options-panel"> <ul> <li id="options-panel-tab" class="activetab"><a href="#tabs" data-subpanel="options-panel"><span>{L_OPTIONS}</span></a></li> <!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab"><a href="#tabs" data-subpanel="attach-panel"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF --> |