summaryrefslogtreecommitdiff
path: root/smarty_bit/block.jstabs.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-06-19 21:27:58 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-06-19 21:27:58 +0000
commit69048ba53ba829f234d54b14e76436556855efb2 (patch)
tree977c9f882f8222313e984e95c558fdd11b72569d /smarty_bit/block.jstabs.php
parent5e093f476fe34f8fc1214dfc609b4a44376712eb (diff)
downloadkernel-69048ba53ba829f234d54b14e76436556855efb2.tar.gz
kernel-69048ba53ba829f234d54b14e76436556855efb2.tar.bz2
kernel-69048ba53ba829f234d54b14e76436556855efb2.zip
add option to disable jstabs
Diffstat (limited to 'smarty_bit/block.jstabs.php')
-rw-r--r--smarty_bit/block.jstabs.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/smarty_bit/block.jstabs.php b/smarty_bit/block.jstabs.php
index fe09122..c332b37 100644
--- a/smarty_bit/block.jstabs.php
+++ b/smarty_bit/block.jstabs.php
@@ -14,8 +14,11 @@
* Abstract: Used to enclose a set of tabs
*/
function smarty_block_jstabs($params, $content, &$smarty) {
+ global $gBitSystem;
$ret = '<div class="tabpane">'.$content.'</div>';
- $ret .= "<script type=\"text/javascript\">//<![CDATA[\nsetupAllTabs();\n//]]></script>";
+ if( $gBitSystem->mPrefs['disable_jstabs'] != 'y' ) {
+ $ret .= "<script type=\"text/javascript\">//<![CDATA[\nsetupAllTabs();\n//]]></script>";
+ }
return $ret;
}
?>