some improvements for menu and select

This commit is contained in:
Rolux 2010-02-06 13:53:42 +05:30
commit ec1693c2c4
5 changed files with 70 additions and 26 deletions

View file

@ -228,7 +228,7 @@
value: "Foo"
}).addClass("margin").appendTo(mainPanel);
Ox.Select({
id: "select",
id: "select1",
items: [
{
checked: true,
@ -245,6 +245,24 @@
}
]
}).addClass("margin").width(96).appendTo(mainPanel);
Ox.Select({
id: "select2",
items: [
{
checked: true,
id: "four",
title: "Four"
},
{
id: "five",
title: "Five"
},
{
id: "six",
title: "Six"
}
]
}).addClass("margin").width(96).appendTo(mainPanel);
//*/
function switchTheme() {
if (Ox.theme() == "classic") {

View file

@ -130,7 +130,7 @@ $(function() {
$(this).blur(); // fix for firefox
menu.toggleMenu();
})
.bindEvent("OxClickMenu", function(event, data) {
.bindEvent("OxClickMenu." + menu.id, function(event, data) {
button.options({
value: data.value
});