From 59d15809a3c621ee20ea28ecfeed0d57e085420f Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Tue, 21 Feb 2012 20:22:13 +0100 Subject: Selectmenu: Introduce menuWidget method, to get access to the menu element. Fix various tests and simplify demos accordingly. Add comment about optgroup-click-handling. --- demos/selectmenu/custom_render.html | 6 +++--- demos/selectmenu/default.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'demos') diff --git a/demos/selectmenu/custom_render.html b/demos/selectmenu/custom_render.html index 7e69dc3e1..2e775084c 100644 --- a/demos/selectmenu/custom_render.html +++ b/demos/selectmenu/custom_render.html @@ -36,15 +36,15 @@ var files = $('select#files').iconselectmenu({ dropdown: false }); - files.iconselectmenu("widget").children("ul").addClass("ui-menu-icons"); + files.iconselectmenu("menuWidget").addClass("ui-menu-icons"); var filesB = $('select#filesB').iconselectmenu({ dropdown: false }); - filesB.iconselectmenu("widget").children("ul").addClass("ui-menu-icons customicons"); + filesB.iconselectmenu("menuWidget").addClass("ui-menu-icons customicons"); var peopleA = $('select#peopleA').iconselectmenu(); - peopleA.iconselectmenu("widget").children("ul").addClass("ui-menu-icons avatar"); + peopleA.iconselectmenu("menuWidget").addClass("ui-menu-icons avatar"); }); -- cgit v1.2.3