var $this = $(this), href
, target_id = $this.attr('data-id')
, target = $this.attr('data-target')
|| e.preventDefault()
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')
, option = $(target).data('collapse') ? 'toggle' : $this.data()
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
$(target).collapse(option);
var $this = $(this);
var href;
var target_id = $this.attr('data-id');
var target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '');
var option = $(target).data('collapse') ? 'toggle' : $this.data();
var $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed');
var $(target).collapse(option);
var $this = $(this);
var href;
var target_id = $this.attr('data-id');
var target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '');
var option = $(target).data('collapse') ? 'toggle' : $this.data();
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed');
$(target).collapse(option);
var $this = $(this)
, href
, target_id = $this.attr('data-id')
, target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')
, option = $(target).data('collapse') ? 'toggle' : $this.data() ;
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
$(target).collapse(option);
e.preventDefault();
var $this = $(this),
href = $this.attr('href'),
target_id = $this.attr('data-id'),
target = $this.attr('data-target'),
option = $(target).data('collapse') ? 'toggle' : $this.data();
if (href) { href.replace(/.*(?=#[^\s]+$)/, ''); }
if ($(target).hasClass('in')) {
$this.addClass('collapsed')
} else {
$this.removeClass('collapsed')
}
$(target).collapse(option);