diff options
author | Felix Nagel <info@felixnagel.com> | 2013-03-09 14:23:46 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-03-09 14:24:12 +0100 |
commit | e2235bd568f791364173047dd81e7392e6c2dec6 (patch) | |
tree | 7080f2004ce849adbfaeae3e72dc01e8e2978223 /demos/selectmenu | |
parent | a6e2863a5c4d22647c973da376b1d1867b673340 (diff) | |
download | jquery-ui-e2235bd568f791364173047dd81e7392e6c2dec6.tar.gz jquery-ui-e2235bd568f791364173047dd81e7392e6c2dec6.zip |
Selectmenu: simplify custom render demo inits
Diffstat (limited to 'demos/selectmenu')
-rw-r--r-- | demos/selectmenu/custom_render.html | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/demos/selectmenu/custom_render.html b/demos/selectmenu/custom_render.html index a69b296ff..64791cb98 100644 --- a/demos/selectmenu/custom_render.html +++ b/demos/selectmenu/custom_render.html @@ -38,14 +38,11 @@ } }); - var files = $( "select#files" ).iconselectmenu(); - files.iconselectmenu( "menuWidget" ).addClass( "ui-menu-icons" ); + $( "select#files" ).iconselectmenu().iconselectmenu( "menuWidget" ).addClass( "ui-menu-icons" ); - var filesB = $( "select#filesB" ).iconselectmenu(); - filesB.iconselectmenu( "menuWidget" ).addClass( "ui-menu-icons customicons" ); + $( "select#filesB" ).iconselectmenu().iconselectmenu( "menuWidget" ).addClass( "ui-menu-icons customicons" ); - var peopleA = $( "select#peopleA" ).iconselectmenu(); - peopleA.iconselectmenu( "menuWidget").addClass( "ui-menu-icons avatar" ); + $( "select#peopleA" ).iconselectmenu().iconselectmenu( "menuWidget").addClass( "ui-menu-icons avatar" ); }); </script> <style> |