diff options
| author | Tim UX <tim@presto> | 2018-03-30 12:09:43 -0400 |
|---|---|---|
| committer | Tim UX <tim@presto> | 2018-03-30 12:09:43 -0400 |
| commit | fa3f7eb3d070fb1f21a4a5982a307e60ef839acd (patch) | |
| tree | bbd408f40a49ac4e1c61f49d1ec8765b249a879e | |
| parent | 2f7f78bdc7c825ccf72ea83e8abf0e2c8994789e (diff) | |
| download | themes-fa3f7eb3d070fb1f21a4a5982a307e60ef839acd.tar.gz themes-fa3f7eb3d070fb1f21a4a5982a307e60ef839acd.tar.bz2 themes-fa3f7eb3d070fb1f21a4a5982a307e60ef839acd.zip | |
fix tabType
| -rw-r--r-- | smartyplugins/block.jstabs.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/smartyplugins/block.jstabs.php b/smartyplugins/block.jstabs.php index 1bcc598..afb5ddd 100644 --- a/smartyplugins/block.jstabs.php +++ b/smartyplugins/block.jstabs.php @@ -35,11 +35,11 @@ function smarty_block_jstabs( $pParams, $pContent, &$gBitSmarty, $pRepeat ) { $tabType = BitBase::getParameter( $pParams, 'tabtype', 'tab' ); - $ret = '<ul class="nav nav-'.$tabType.'s" data-'.$tabType.'="'.$tabType.'" id="'.$tabId.'">'; + $ret = '<ul class="nav nav-'.$tabType.'s" data-tab="'.$tabType.'" id="'.$tabId.'">'; foreach( $jsTabLinks as $tabLink ) { $ret .= $tabLink; } - $ret .= '</ul><div class="'.$tabType.'-content">'.$pContent.'</div>'; + $ret .= '</ul><div class="tab-content">'.$pContent.'</div>'; $ret .= '<script type="text/javascript">/*<![CDATA[*/ $(\'#'.$tabId.' a\').click(function (e) { e.preventDefault(); $(this).tab(\'show\'); }); '.$setupJs .'/*]]>*/</script> '; |
