From 820a3b27b6cfd320584be5a8e1652c7dff9771e4 Mon Sep 17 00:00:00 2001 From: fat Date: Fri, 7 Dec 2012 19:16:48 -0500 Subject: get tests passing for typeahead :P --- docs/assets/js/bootstrap.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'docs/assets/js/bootstrap.js') 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 } -- cgit v1.2.3