From: Felix Nagel Date: Wed, 18 Jan 2012 00:30:01 +0000 (+0100) Subject: added: option appendTo (where to append menu element), thx @payahnih, see #155 X-Git-Tag: selectmenu_v1.2.1~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=86dfdb8db56451f46671be91f54b55944a6d47bf;p=jquery-ui.git added: option appendTo (where to append menu element), thx @payahnih, see #155 --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index cc75ce87e..811c87585 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -17,6 +17,7 @@ $.widget("ui.selectmenu", { eventPrefix: "selectmenu", options: { transferClasses: true, + appendTo: "body", typeAhead: 1000, style: 'dropdown', positionOptions: { @@ -203,7 +204,7 @@ $.widget("ui.selectmenu", { }); this.listWrap = $( "
", { 'class': self.widgetBaseClass + '-menu' - }).append( this.list ).appendTo( 'body' ); + }).append( this.list ).appendTo( o.appendTo ); // transfer menu click to menu button this.list