mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Update the default visual test to use the new menus option that replaced the items option
This commit is contained in:
parent
1748b5f404
commit
aa8c4770a9
@ -28,14 +28,14 @@
|
|||||||
select: function(event, ui) {
|
select: function(event, ui) {
|
||||||
$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
|
$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
|
||||||
},
|
},
|
||||||
items: "div"
|
menus: "div"
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#menu6").menu({
|
$("#menu6").menu({
|
||||||
select: function(event, ui) {
|
select: function(event, ui) {
|
||||||
$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
|
$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
|
||||||
},
|
},
|
||||||
items: ".menuElement"
|
menus: ".menuElement"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user