Skip to content

Commit

Permalink
fix the collapsible
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Apr 20, 2017
1 parent 66a3f94 commit 1d60931
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion libraries/cms/html/bootstrap.php
Expand Up @@ -395,7 +395,7 @@ public static function startAccordion($selector = 'myAccordian', $params = array
JHtml::_('bootstrap.framework');

// Setup options object
$opt['parent'] = isset($params['parent']) ? ($params['parent'] == true ? '#' . $selector : $params['parent']) : false;
$opt['parent'] = isset($params['parent']) ? ($params['parent'] == true ? '#' . $selector : $params['parent']) : '';
$opt['toggle'] = isset($params['toggle']) ? (boolean) $params['toggle'] : ($opt['parent'] === false || isset($params['active']) ? false : true);
$opt['onShow'] = isset($params['onShow']) ? (string) $params['onShow'] : null;
$opt['onShown'] = isset($params['onShown']) ? (string) $params['onShown'] : null;
Expand Down
9 changes: 0 additions & 9 deletions media/system/js/bootstrap-init.js
Expand Up @@ -72,15 +72,6 @@
var modalBody = $self.find('.modal-body');
modalBody.find('iframe').remove();
modalBody.prepend($self.data('iframe'));
$('.modalTooltip').tooltip({'html': true, 'container': '#' + $self.prop('id')});
} else {
$('.modalTooltip').each(function(){
var $el = $(this);
var attr = $el.attr('data-placement');
if ( attr === undefined || attr === false ) {
$el.attr('data-placement', 'auto-dir top-left');
}
});
}
}).on('shown.bs.modal', function() {
var modalHeight = $('div.modal:visible').outerHeight(true),
Expand Down
2 changes: 1 addition & 1 deletion media/system/js/bootstrap-init.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d60931

Please sign in to comment.