mirror of
https://github.com/twbs/bootstrap.git
synced 2025-06-06 00:03:01 -04: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):
|
Enable tabbable list item via JavaScript (each list item needs to be activated individually):
|
||||||
|
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
$('#myList a').click(function (e) {
|
$('#myList a').on('click', function (e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
$(this).tab('show')
|
$(this).tab('show')
|
||||||
})
|
})
|
||||||
|
@ -19,7 +19,7 @@ Before getting started with Bootstrap's modal component, be sure to read the fol
|
|||||||
|
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
$('#myModal').on('shown.bs.modal', function () {
|
$('#myModal').on('shown.bs.modal', function () {
|
||||||
$('#myInput').focus()
|
$('#myInput').trigger('focus')
|
||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% 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):
|
Enable tabbable tabs via JavaScript (each tab needs to be activated individually):
|
||||||
|
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
$('#myTab a').click(function (e) {
|
$('#myTab a').on('click', function (e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
$(this).tab('show')
|
$(this).tab('show')
|
||||||
})
|
})
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('[data-toggle="offcanvas"]').click(function () {
|
$('[data-toggle="offcanvas"]').on('click', function () {
|
||||||
$('.row-offcanvas').toggleClass('active')
|
$('.row-offcanvas').toggleClass('active')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user