Project

General

Profile

Bug #36906 » template.php.diff

patch to fix the problem - Alexander Jahn, 2012-05-07 10:06

View differences:

template.php
}
// Create DIV layer for content:
$availableIndexArray[] = $index;
$divs[] = '
<div style="display: none;" id="'.$id.'-'.$index.'-DIV" class="c-tablayer">'.
($def['description'] ? '<p class="c-descr">'.nl2br(htmlspecialchars($def['description'])).'</p>' : '').
......
<script type="text/javascript">
DTM_array["'.$id.'"] = new Array();
'.implode('',$JSinit).'
'.($toggle<=0 ? 'DTM_activate("'.$id.'", top.DTM_currentTabs["'.$id.'"]?top.DTM_currentTabs["'.$id.'"]:'.intval($defaultTabIndex).', 0);' : '').'
'.($toggle<=0 ? 'DTM_activate("'.$id.'", top.DTM_currentTabs["'.$id.'"]?top.DTM_currentTabs["'.$id.'"]:'.( in_array( $defaultTabIndex, $availableIndexArray ) ? intval( $defaultTabIndex ) : $availableIndexArray[0] ) . ', 0);' : '').'
</script>
';
(2-2/2)