mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Merge pull request #23876 from vsn4ik/v4-dev-dont-use-short-jquery
Dont use short jQuery methods in documentations
This commit is contained in:
commit
cad22335ed
@ -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')
|
||||
})
|
||||
|
@ -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 %}
|
||||
|
||||
|
@ -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')
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
$(document).ready(function () {
|
||||
$('[data-toggle="offcanvas"]').click(function () {
|
||||
$('[data-toggle="offcanvas"]').on('click', function () {
|
||||
$('.row-offcanvas').toggleClass('active')
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user