mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
grunt dist
This commit is contained in:
parent
a035ee59ae
commit
49519e9816
16
dist/js/bootstrap.js
vendored
16
dist/js/bootstrap.js
vendored
@ -258,15 +258,6 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// FOCUS SHIM (FOR BUTTON GROUPS)
|
|
||||||
// ==============================
|
|
||||||
|
|
||||||
function getBtnTarget(target) {
|
|
||||||
var $target = $(target)
|
|
||||||
return $target.hasClass('btn') ? $target : $target.parent('.btn')
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// BUTTON DATA-API
|
// BUTTON DATA-API
|
||||||
// ===============
|
// ===============
|
||||||
|
|
||||||
@ -277,11 +268,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
Plugin.call($btn, 'toggle')
|
Plugin.call($btn, 'toggle')
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
.on('focus.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
||||||
getBtnTarget(e.target).addClass('focus')
|
$(e.target).closest('.btn').toggleClass('focus', e.type == 'focus')
|
||||||
})
|
|
||||||
.on('blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
|
||||||
getBtnTarget(e.target).removeClass('focus')
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}(jQuery);
|
}(jQuery);
|
||||||
|
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
16
docs/dist/js/bootstrap.js
vendored
16
docs/dist/js/bootstrap.js
vendored
@ -258,15 +258,6 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// FOCUS SHIM (FOR BUTTON GROUPS)
|
|
||||||
// ==============================
|
|
||||||
|
|
||||||
function getBtnTarget(target) {
|
|
||||||
var $target = $(target)
|
|
||||||
return $target.hasClass('btn') ? $target : $target.parent('.btn')
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// BUTTON DATA-API
|
// BUTTON DATA-API
|
||||||
// ===============
|
// ===============
|
||||||
|
|
||||||
@ -277,11 +268,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
Plugin.call($btn, 'toggle')
|
Plugin.call($btn, 'toggle')
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
.on('focus.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
||||||
getBtnTarget(e.target).addClass('focus')
|
$(e.target).closest('.btn').toggleClass('focus', e.type == 'focus')
|
||||||
})
|
|
||||||
.on('blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
|
||||||
getBtnTarget(e.target).removeClass('focus')
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}(jQuery);
|
}(jQuery);
|
||||||
|
2
docs/dist/js/bootstrap.min.js
vendored
2
docs/dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user