]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #12611: Mention limitation of one plugin's data attributes per element
authorMark Otto <otto@github.com>
Fri, 7 Feb 2014 09:10:21 +0000 (01:10 -0800)
committerMark Otto <otto@github.com>
Fri, 7 Feb 2014 09:10:21 +0000 (01:10 -0800)
docs/javascript.html

index 8932ff295a7242789443ab7c2f24896db091aa30..24c1eb79dd5b1341b061a12590f2c95b594573f2 100644 (file)
@@ -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">