]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
rebuild
authorJacob Thornton <jacobthornton@gmail.com>
Thu, 8 Mar 2012 19:39:50 +0000 (11:39 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Thu, 8 Mar 2012 19:39:50 +0000 (11:39 -0800)
docs/assets/bootstrap.zip
docs/assets/js/bootstrap-typeahead.js

index 48e8324e3987c958da9a27e543359881581e3bc9..a12cdd8d7ec958f3f2b8d0934ec2cb4078b1cd85 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index 50315595071b08ed005450abe41f83b922c0fec9..99f84f79610c2f2b3451daa7dd1e90127881986f 100644 (file)
@@ -40,6 +40,7 @@
   , select: function () {
       var val = this.$menu.find('.active').attr('data-value')
       this.$element.val(val)
+      this.$element.change();
       return this.hide()
     }
 
     }
 
   , keyup: function (e) {
-      e.stopPropagation()
-      e.preventDefault()
-
       switch(e.keyCode) {
         case 40: // down arrow
         case 38: // up arrow
           break
 
         case 27: // escape
+          if (!this.shown) return
           this.hide()
           break
 
           this.lookup()
       }
 
+      e.stopPropagation()
+      e.preventDefault()
   }
 
   , keypress: function (e) {
-      e.stopPropagation()
       if (!this.shown) return
 
       switch(e.keyCode) {
           this.next()
           break
       }
+
+      e.stopPropagation()
     }
 
   , blur: function (e) {
       var that = this
-      e.stopPropagation()
-      e.preventDefault()
       setTimeout(function () { that.hide() }, 150)
     }