aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-07-22 14:50:52 -0700
committerJacob Thornton <[email protected]>2012-07-22 14:50:52 -0700
commitfae6c36874b102408b53c6e5d980b247a9779dea (patch)
treeb9aa63f055d185c9921c8ad6ff16800e2c73f00f /docs/assets/js/bootstrap.js
parent8281a9023a9a687be007de85f1731d131eedaf30 (diff)
downloadbootstrap-fae6c36874b102408b53c6e5d980b247a9779dea.tar.xz
bootstrap-fae6c36874b102408b53c6e5d980b247a9779dea.zip
adds minLength #3960
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r--docs/assets/js/bootstrap.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index 34038ce5a..f84b726d5 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -1690,7 +1690,7 @@
this.query = this.$element.val()
- if (!this.query) {
+ if (!this.query || this.query.length < this.options.minLength) {
return this.shown ? this.hide() : this
}
@@ -1888,12 +1888,13 @@
, items: 8
, menu: '<ul class="typeahead dropdown-menu"></ul>'
, item: '<li><a href="#"></a></li>'
+ , minLength: 1
}
$.fn.typeahead.Constructor = Typeahead
- /* TYPEAHEAD DATA-API
+ /* TYPEAHEAD DATA-API
* ================== */
$(function () {