diff options
| author | Mark Otto <[email protected]> | 2014-02-08 16:01:56 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-02-08 16:01:56 -0800 |
| commit | e3cfd5821db94df0d6eb483d1f859da9dddd55a8 (patch) | |
| tree | 8af2dc5a1442b8974ecc7809ca516f2c67fde39b /docs/javascript.html | |
| parent | 08ff305ed7ba689238d4524b0285d37d15aaf8fa (diff) | |
| parent | 842af44fccb338f165eb2ea64bdaffd999850881 (diff) | |
| download | bootstrap-e3cfd5821db94df0d6eb483d1f859da9dddd55a8.tar.xz bootstrap-e3cfd5821db94df0d6eb483d1f859da9dddd55a8.zip | |
Merge branch 'master' into pr/12462
Conflicts:
dist/css/bootstrap.css.map
dist/css/bootstrap.min.css
docs/dist/css/bootstrap.css.map
docs/dist/css/bootstrap.min.css
Diffstat (limited to 'docs/javascript.html')
| -rw-r--r-- | docs/javascript.html | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/docs/javascript.html b/docs/javascript.html index 8932ff295..2d42da203 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -15,8 +15,13 @@ lead: "Bring Bootstrap's components to life with over a dozen custom jQuery plug <p>Plugins can be included individually (using Bootstrap's individual <code>*.js</code> files), or all at once (using <code>bootstrap.js</code> or the minified <code>bootstrap.min.js</code>).</p> <div class="bs-callout bs-callout-danger"> - <h4>Do not attempt to include both.</h4> - <p>Both <code>bootstrap.js</code> and <code>bootstrap.min.js</code> contain all plugins in a single file.</p> + <h4>Using the compiled JavaScript</h4> + <p>Both <code>bootstrap.js</code> and <code>bootstrap.min.js</code> contain all plugins in a single file. Include only one.</p> + </div> + + <div class="bs-callout bs-callout-danger"> + <h4>Component data attributes</h4> + <p>Don't mix data attributes from separate plugins on the same component. For example, a button cannot have a tooltip and toggle a modal. To accomplish this, use a wrapping element.</p> </div> <div class="bs-callout bs-callout-danger"> @@ -561,6 +566,7 @@ $('.dropdown-toggle').dropdown() <p>Toggles the dropdown menu of a given navbar or tabbed navigation.</p> <h3>Events</h3> + <p>All dropdown events are fired at the <code>.dropdown-menu</code>'s parent element.</p> <div class="table-responsive"> <table class="table table-bordered table-striped"> <thead> @@ -1438,10 +1444,10 @@ $('#my-alert').bind('closed.bs.alert', function () { </button> <script> $('#loading-example-btn').click(function () { - var btn = $(this); - btn.button('loading'); + var btn = $(this) + btn.button('loading') $.ajax(...).always(function () { - btn.button('reset'); + btn.button('reset') }); }); </script> @@ -1546,10 +1552,10 @@ $('.btn').button() <button id="loading-example-btn" type="button" class="btn btn-primary" data-loading-text="loading stuff...">...</button> <script> $('#loading-example-btn').click(function () { - var btn = $(this); - btn.button('loading'); + var btn = $(this) + btn.button('loading') $.ajax(...).always(function () { - btn.button('reset'); + btn.button('reset') }); }); </script> |
