mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Merge branch '2.0.3-wip' of github.com:twitter/bootstrap into 2.0.3-wip
This commit is contained in:
Vendored
+2
-2
@@ -27,7 +27,7 @@
|
|||||||
* ====================== */
|
* ====================== */
|
||||||
|
|
||||||
var dismiss = '[data-dismiss="alert"]'
|
var dismiss = '[data-dismiss="alert"]'
|
||||||
, Alert = function ( el ) {
|
, Alert = function (el) {
|
||||||
$(el).on('click', dismiss, this.close)
|
$(el).on('click', dismiss, this.close)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
/* ALERT PLUGIN DEFINITION
|
/* ALERT PLUGIN DEFINITION
|
||||||
* ======================= */
|
* ======================= */
|
||||||
|
|
||||||
$.fn.alert = function ( option ) {
|
$.fn.alert = function (option) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
, data = $this.data('alert')
|
, data = $this.data('alert')
|
||||||
|
|||||||
Vendored
+1
@@ -60,6 +60,7 @@
|
|||||||
|
|
||||||
if (actives && actives.length) {
|
if (actives && actives.length) {
|
||||||
hasData = actives.data('collapse')
|
hasData = actives.data('collapse')
|
||||||
|
if (hasData && hasData.transitioning) return
|
||||||
actives.collapse('hide')
|
actives.collapse('hide')
|
||||||
hasData || actives.data('collapse', null)
|
hasData || actives.data('collapse', null)
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+2
-2
@@ -27,7 +27,7 @@
|
|||||||
* ====================== */
|
* ====================== */
|
||||||
|
|
||||||
var dismiss = '[data-dismiss="alert"]'
|
var dismiss = '[data-dismiss="alert"]'
|
||||||
, Alert = function ( el ) {
|
, Alert = function (el) {
|
||||||
$(el).on('click', dismiss, this.close)
|
$(el).on('click', dismiss, this.close)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
/* ALERT PLUGIN DEFINITION
|
/* ALERT PLUGIN DEFINITION
|
||||||
* ======================= */
|
* ======================= */
|
||||||
|
|
||||||
$.fn.alert = function ( option ) {
|
$.fn.alert = function (option) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
, data = $this.data('alert')
|
, data = $this.data('alert')
|
||||||
|
|||||||
Vendored
+1
@@ -60,6 +60,7 @@
|
|||||||
|
|
||||||
if (actives && actives.length) {
|
if (actives && actives.length) {
|
||||||
hasData = actives.data('collapse')
|
hasData = actives.data('collapse')
|
||||||
|
if (hasData && hasData.transitioning) return
|
||||||
actives.collapse('hide')
|
actives.collapse('hide')
|
||||||
hasData || actives.data('collapse', null)
|
hasData || actives.data('collapse', null)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user