aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-04-16 17:36:03 -0700
committerJacob Thornton <[email protected]>2012-04-16 17:36:03 -0700
commitf3cf4cbaae8c3b3aaed299b63d1773d85cd7789a (patch)
tree73653cfc9a175b306ee45dff2d6b5722789c498a /docs/assets/js/bootstrap.js
parentba202d77baa35125a521224d9a55ec013fc3ccfa (diff)
downloadbootstrap-f3cf4cbaae8c3b3aaed299b63d1773d85cd7789a.tar.xz
bootstrap-f3cf4cbaae8c3b3aaed299b63d1773d85cd7789a.zip
rebuild
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r--docs/assets/js/bootstrap.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index 448d97731..abcdbb1e4 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -1565,6 +1565,7 @@
this.matcher = this.options.matcher || this.matcher
this.sorter = this.options.sorter || this.sorter
this.highlighter = this.options.highlighter || this.highlighter
+ this.updater = this.options.updater || this.updater
this.$menu = $(this.options.menu).appendTo('body')
this.source = this.options.source
this.shown = false
@@ -1578,11 +1579,15 @@
, select: function () {
var val = this.$menu.find('.active').attr('data-value')
this.$element
- .val(val)
+ .val(this.updater(val))
.change()
return this.hide()
}
+ , updater: function (item) {
+ return item
+ }
+
, show: function () {
var pos = $.extend({}, this.$element.offset(), {
height: this.$element[0].offsetHeight