aboutsummaryrefslogtreecommitdiff
path: root/docs/assets
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-03-10 11:23:47 -0800
committerMark Otto <[email protected]>2012-03-10 11:23:47 -0800
commitc414e57dccf0d0177f42df10d2f36f79581563d6 (patch)
tree59b7fdd5f757789f8d4ea58456b6b450efb337b0 /docs/assets
parent305374ab1a49a1bdfbab0e52a2be218fc42f3cc0 (diff)
parent1562381114ce1ce5dc06d311ddb6d1e0f2048a1f (diff)
downloadbootstrap-c414e57dccf0d0177f42df10d2f36f79581563d6.tar.xz
bootstrap-c414e57dccf0d0177f42df10d2f36f79581563d6.zip
Merge branch '2.0.2-wip' of github.com:twitter/bootstrap into 2.0.2-wip
Conflicts: docs/assets/bootstrap.zip
Diffstat (limited to 'docs/assets')
-rw-r--r--docs/assets/bootstrap.zipbin54996 -> 55115 bytes
-rw-r--r--docs/assets/js/bootstrap-typeahead.js12
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index b317f2936..b87f61992 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/docs/assets/js/bootstrap-typeahead.js b/docs/assets/js/bootstrap-typeahead.js
index 503155950..99f84f796 100644
--- a/docs/assets/js/bootstrap-typeahead.js
+++ b/docs/assets/js/bootstrap-typeahead.js
@@ -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()
}
@@ -165,9 +166,6 @@
}
, keyup: function (e) {
- e.stopPropagation()
- e.preventDefault()
-
switch(e.keyCode) {
case 40: // down arrow
case 38: // up arrow
@@ -180,6 +178,7 @@
break
case 27: // escape
+ if (!this.shown) return
this.hide()
break
@@ -187,10 +186,11 @@
this.lookup()
}
+ e.stopPropagation()
+ e.preventDefault()
}
, keypress: function (e) {
- e.stopPropagation()
if (!this.shown) return
switch(e.keyCode) {
@@ -210,12 +210,12 @@
this.next()
break
}
+
+ e.stopPropagation()
}
, blur: function (e) {
var that = this
- e.stopPropagation()
- e.preventDefault()
setTimeout(function () { that.hide() }, 150)
}