vendor/assets/javascripts/bootstrap/bootstrap-collapse.js in jombo-0.0.1.beta25 vs vendor/assets/javascripts/bootstrap/bootstrap-collapse.js in jombo-0.0.1.beta26
- old
+ new
@@ -1,8 +1,8 @@
/* =============================================================
- * bootstrap-collapsible.js v2.0.0
- * http://twitter.github.com/bootstrap/javascript.html#collapsible
+ * bootstrap-collapse.js v2.0.0
+ * http://twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -122,13 +122,15 @@
/* COLLAPSIBLE DATA-API
* ==================== */
$(function () {
$('body').on('click.collapse.data-api', '[data-toggle=collapse]', function ( e ) {
- var $this = $(this)
- , target = $this.attr('data-target') || e.preventDefault() || $this.attr('href')
+ var $this = $(this), href
+ , target = $this.attr('data-target')
+ || e.preventDefault()
+ || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
, option = $(target).data('collapse') ? 'toggle' : $this.data()
$(target).collapse(option)
})
})
-}( window.jQuery )
\ No newline at end of file
+}( window.jQuery )