From a9259b12aa07057c3b9e3575b1429b16bfdb9509 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Thu, 11 Jul 2013 10:58:18 -0400 Subject: [PATCH] [ticket/11563] Dynamically generate panels list PHPBB3-11563 --- phpBB/styles/prosilver/template/forum_fn.js | 5 ++++- phpBB/styles/prosilver/template/mcp_topic.html | 2 +- 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 @@ -
+
  • class="activetab"> {L_DISPLAY_OPTIONS} 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 @@ -