aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/mcp_topic.html
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-07-13 10:49:04 -0700
committerNathan Guse <nathaniel.guse@gmail.com>2013-07-13 10:49:04 -0700
commit9d86385a362868bcd82901e1c7df18ba80eda945 (patch)
tree5e4f36284d314362665523df1584afddcc6cdea6 /phpBB/styles/prosilver/template/mcp_topic.html
parente10cbbf023aa6d0633d17804b3668a0ff09d96c7 (diff)
parent1d9794559354d7c52da7751e5d1fdcb17fe949e5 (diff)
downloadforums-9d86385a362868bcd82901e1c7df18ba80eda945.tar
forums-9d86385a362868bcd82901e1c7df18ba80eda945.tar.gz
forums-9d86385a362868bcd82901e1c7df18ba80eda945.tar.bz2
forums-9d86385a362868bcd82901e1c7df18ba80eda945.tar.xz
forums-9d86385a362868bcd82901e1c7df18ba80eda945.zip
Merge pull request #1436 from cyberalien/ticket/11563
Fix subPanels() in forum_fn.js
Diffstat (limited to 'phpBB/styles/prosilver/template/mcp_topic.html')
-rw-r--r--phpBB/styles/prosilver/template/mcp_topic.html23
1 files changed, 7 insertions, 16 deletions
diff --git a/phpBB/styles/prosilver/template/mcp_topic.html b/phpBB/styles/prosilver/template/mcp_topic.html
index 3975b6e513..0fd5a9455f 100644
--- a/phpBB/styles/prosilver/template/mcp_topic.html
+++ b/phpBB/styles/prosilver/template/mcp_topic.html
@@ -3,33 +3,24 @@
<div class="tabs-container">
<h2><a href="{U_VIEW_TOPIC}">{L_TOPIC}{L_COLON} {TOPIC_TITLE}</a></h2>
-<script type="text/javascript">
-// <![CDATA[
-var panels = new Array('display-panel', 'split-panel', 'merge-panel');
-
<!-- IF S_MERGE_VIEW -->
- var show_panel = 'merge-panel';
+ <!-- DEFINE $SHOW_PANEL = 'merge-panel' -->
<!-- ELSEIF S_SPLIT_VIEW -->
- var show_panel = 'split-panel';
+ <!-- DEFINE $SHOW_PANEL = 'split-panel' -->
<!-- ELSE -->
- var show_panel = 'display-panel';
+ <!-- DEFINE $SHOW_PANEL = 'display-panel' -->
<!-- ENDIF -->
-onload_functions.push('subPanels()');
-
-// ]]>
-</script>
-
-<div id="minitabs">
+<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" onclick="subPanels('display-panel'); return false;"><span>{L_DISPLAY_OPTIONS}</span></a>
+ <a href="#minitabs" data-subpanel="display-panel"><span>{L_DISPLAY_OPTIONS}</span></a>
</li>
<li id="split-panel-tab">
- <a href="#minitabs" onclick="subPanels('split-panel'); return false;"><span>{L_SPLIT_TOPIC}</span></a>
+ <a href="#minitabs" data-subpanel="split-panel"><span>{L_SPLIT_TOPIC}</span></a>
</li>
<li id="merge-panel-tab"<!-- IF S_MERGE_VIEW --> class="activetab"<!-- ENDIF -->>
- <a href="#minitabs" onclick="subPanels('merge-panel'); return false;"><span>{L_MERGE_POSTS}</span></a>
+ <a href="#minitabs" data-subpanel="merge-panel"><span>{L_MERGE_POSTS}</span></a>
</li>
</ul>
</div>