mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
add collapsed class to collapse invoker when it's target is collapsed #3525
This commit is contained in:
Vendored
+1
@@ -150,6 +150,7 @@
|
||||
|| e.preventDefault()
|
||||
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
|
||||
, option = $(target).data('collapse') ? 'toggle' : $this.data()
|
||||
$this[$(target).hasClass('in') ? 'removeClass' : 'addClass']('show')
|
||||
$(target).collapse(option)
|
||||
})
|
||||
})
|
||||
|
||||
Vendored
+1
@@ -562,6 +562,7 @@
|
||||
|| e.preventDefault()
|
||||
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
|
||||
, option = $(target).data('collapse') ? 'toggle' : $this.data()
|
||||
$this[$(target).hasClass('in') ? 'removeClass' : 'addClass']('show')
|
||||
$(target).collapse(option)
|
||||
})
|
||||
})
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user