aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-02-21 20:22:13 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-02-21 20:22:13 +0100
commit59d15809a3c621ee20ea28ecfeed0d57e085420f (patch)
tree9de18088b9745e0f119e459497544066e39be6e4 /demos
parentb15dc8e3c582a539aaad988b96f6d7b89927edf5 (diff)
downloadjquery-ui-59d15809a3c621ee20ea28ecfeed0d57e085420f.tar.gz
jquery-ui-59d15809a3c621ee20ea28ecfeed0d57e085420f.zip
Selectmenu: Introduce menuWidget method, to get access to the menu element. Fix various tests and simplify demos accordingly. Add comment about optgroup-click-handling.
Diffstat (limited to 'demos')
-rw-r--r--demos/selectmenu/custom_render.html6
-rw-r--r--demos/selectmenu/default.html4
2 files changed, 5 insertions, 5 deletions
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");
});
</script>
<style>
diff --git a/demos/selectmenu/default.html b/demos/selectmenu/default.html
index 5653ac76c..da91cf16f 100644
--- a/demos/selectmenu/default.html
+++ b/demos/selectmenu/default.html
@@ -21,7 +21,7 @@
var withOverflow = $('#number').selectmenu({
dropdown: false
});
- withOverflow.selectmenu("widget").addClass("overflow");
+ withOverflow.selectmenu("menuWidget").addClass("overflow");
});
</script>
<style>
@@ -29,7 +29,7 @@
fieldset { border: 0; }
label { display: block; }
select { width: 200px; }
- .overflow ul { height: 200px; overflow: auto; overflow-y: auto; overflow-x: hidden;}
+ .overflow { height: 200px; overflow: auto; overflow-y: auto; overflow-x: hidden;}
</style>
</head>
<body>