From a787d52d4af712fb608e0e050d439db2cbc5550a Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 20 Dec 2012 00:10:06 +0100 Subject: [PATCH] Selectmenu: make dropdown style default and remove option dropdown --- demos/selectmenu/custom_render.html | 8 ++---- demos/selectmenu/default.html | 4 +-- ui/jquery.ui.selectmenu.js | 43 ++++++----------------------- 3 files changed, 12 insertions(+), 43 deletions(-) diff --git a/demos/selectmenu/custom_render.html b/demos/selectmenu/custom_render.html index 1aa563d61..c4fd2cd3b 100644 --- a/demos/selectmenu/custom_render.html +++ b/demos/selectmenu/custom_render.html @@ -38,14 +38,10 @@ } }); - var files = $( "select#files" ).iconselectmenu({ - dropdown: false - }); + var files = $( "select#files" ).iconselectmenu(); files.iconselectmenu( "menuWidget" ).addClass( "ui-menu-icons" ); - var filesB = $( "select#filesB" ).iconselectmenu({ - dropdown: false - }); + var filesB = $( "select#filesB" ).iconselectmenu(); filesB.iconselectmenu( "menuWidget" ).addClass( "ui-menu-icons customicons" ); var peopleA = $( "select#peopleA" ).iconselectmenu(); diff --git a/demos/selectmenu/default.html b/demos/selectmenu/default.html index 824f89fa2..20a2c6bc8 100644 --- a/demos/selectmenu/default.html +++ b/demos/selectmenu/default.html @@ -17,9 +17,7 @@ $('#files').selectmenu(); - var withOverflow = $('#number').selectmenu({ - dropdown: false - }); + var withOverflow = $('#number').selectmenu(); withOverflow.selectmenu("menuWidget").addClass("overflow"); }); diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index aa2e7ab12..88b351a12 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -21,16 +21,14 @@ $.widget( "ui.selectmenu", { defaultElement: "