1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Dont use short jQuery methods

This commit is contained in:
vsn4ik 2017-09-08 11:41:42 +03:00
parent d3d06583c5
commit 84b3097a4a
4 changed files with 4 additions and 4 deletions

View file

@ -244,7 +244,7 @@ You can activate a list group navigation without writing any JavaScript by simpl
Enable tabbable list item via JavaScript (each list item needs to be activated individually):
{% highlight js %}
$('#myList a').click(function (e) {
$('#myList a').on('click', function (e) {
e.preventDefault()
$(this).tab('show')
})

View file

@ -19,7 +19,7 @@ Before getting started with Bootstrap's modal component, be sure to read the fol
{% highlight js %}
$('#myModal').on('shown.bs.modal', function () {
$('#myInput').focus()
$('#myInput').trigger('focus')
})
{% endhighlight %}

View file

@ -554,7 +554,7 @@ You can activate a tab or pill navigation without writing any JavaScript by simp
Enable tabbable tabs via JavaScript (each tab needs to be activated individually):
{% highlight js %}
$('#myTab a').click(function (e) {
$('#myTab a').on('click', function (e) {
e.preventDefault()
$(this).tab('show')
})

View file

@ -1,5 +1,5 @@
$(document).ready(function () {
$('[data-toggle="offcanvas"]').click(function () {
$('[data-toggle="offcanvas"]').on('click', function () {
$('.row-offcanvas').toggleClass('active')
});
});