diff options
| author | fat <[email protected]> | 2012-12-07 19:16:48 -0500 |
|---|---|---|
| committer | fat <[email protected]> | 2012-12-07 19:16:48 -0500 |
| commit | 820a3b27b6cfd320584be5a8e1652c7dff9771e4 (patch) | |
| tree | 989995e4b9dd43f5492254a3e4b439ecc13acffd /docs/assets/js/bootstrap.js | |
| parent | 1747caf19d59cad7fdc90ae56a00e0e2849f95f4 (diff) | |
| download | bootstrap-820a3b27b6cfd320584be5a8e1652c7dff9771e4.tar.xz bootstrap-820a3b27b6cfd320584be5a8e1652c7dff9771e4.zip | |
get tests passing for typeahead :P
Diffstat (limited to 'docs/assets/js/bootstrap.js')
| -rw-r--r-- | docs/assets/js/bootstrap.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index d791b88de..6c15a5832 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -1752,8 +1752,8 @@ 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).insertAfter(this.$element) this.source = this.options.source + this.$menu = $(this.options.menu) this.shown = false this.listen() } @@ -1779,12 +1779,14 @@ height: this.$element[0].offsetHeight }) - this.$menu.css({ - top: pos.top + pos.height - , left: pos.left - }) + this.$menu + .insertAfter(this.$element) + .css({ + top: pos.top + pos.height + , left: pos.left + }) + .show() - this.$menu.show() this.shown = true return this } |
