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')
});
});