From 218466cc659009a7c98e4eab8d3e91cec15286f6 Mon Sep 17 00:00:00 2001 From: Redouane Zait Date: Fri, 24 Jan 2014 18:51:14 +0100 Subject: [PATCH] added a new appendMenuTo option --- bootstrap-tagautocomplete.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap-tagautocomplete.js b/bootstrap-tagautocomplete.js index 1b44645..f52ce59 100644 --- a/bootstrap-tagautocomplete.js +++ b/bootstrap-tagautocomplete.js @@ -29,6 +29,7 @@ $.fn.typeahead.Constructor.call(this, element, options) this.after = this.options.after || this.after this.show = this.options.show || this.show + this.appendMenuTo = this.options.appendMenuTo || 'body'; } /* NOTE: TAGAUTOCOMPLETE EXTENDS BOOTSTRAP-TYPEAHEAD.js @@ -67,7 +68,7 @@ var height = this.$element[0].offsetHeight; this.$menu - .appendTo('body') + .appendTo(this.appendMenuTo) .show() .css({ position: "absolute",