]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update to jquery 1.7 + add toggle method to twipsy/popover
authorJacob Thornton <jacobthornton@gmail.com>
Sun, 6 Nov 2011 00:06:41 +0000 (17:06 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Sun, 6 Nov 2011 00:06:41 +0000 (17:06 -0700)
bootstrap.css
docs/index.html
docs/javascript.html
js/bootstrap-twipsy.js

index eb4b824d32cb6f31674e757f4a0689552d8fd49c..99b0198443afd17f5b0d801d0a7858a0816920dc 100644 (file)
@@ -6,7 +6,7 @@
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Fri Nov  4 13:44:15 PDT 2011
+ * Date: Sat Nov  5 17:05:04 PDT 2011
  */
 /* Reset.less
  * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here      that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
index ff79f84f400b2fd961b4849991f71c46aaa4dc99..f22db0e604cbf11f6dcbdaa0544c081bb2e9fdfd 100644 (file)
@@ -2024,7 +2024,7 @@ Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> verita
 
 
     <!-- Le javascript -->
-    <script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
+    <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
     <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
     <script src="assets/js/google-code-prettify/prettify.js"></script>
     <script>$(function () { prettyPrint() })</script>
index 9176ff69806c68652cf4635a17535ce3d9f7e562..82dcffba75724f91937073bfd2805efb998e5e7f 100644 (file)
@@ -12,7 +12,7 @@
     <![endif]-->
 
     <!-- Le javascript -->
-    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
+    <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
     <script src="assets/js/google-code-prettify/prettify.js"></script>
     <script>$(function () { prettyPrint() })</script>
     <script src="../js/bootstrap-modal.js"></script>
index 7f8ad0fed8582d97fc02c9fdcfac5ef17a289214..e249c815d714fcb67b5671824d35fe9af03c6aea 100644 (file)
     }
 
   , tip: function() {
-      if (!this.$tip) {
-        this.$tip = $('<div class="twipsy" />').html(this.options.template)
-      }
-      return this.$tip
+      return this.$tip = this.$tip || $('<div class="twipsy" />').html(this.options.template)
     }
 
   , validate: function() {
       this.enabled = !this.enabled
     }
 
+  , toggle: function () {
+      this[this.tip().hasClass('in') ? 'hide' : 'show']()
+    }
+
   }