diff options
Diffstat (limited to 'smarty_bit/block.jstabs.php')
| -rw-r--r-- | smarty_bit/block.jstabs.php | 5 |
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; } ?> |
