diff options
Diffstat (limited to 'demos/menu/contextmenu.html')
-rw-r--r-- | demos/menu/contextmenu.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/menu/contextmenu.html b/demos/menu/contextmenu.html index 1c4a6ddd4..682d016dc 100644 --- a/demos/menu/contextmenu.html +++ b/demos/menu/contextmenu.html @@ -9,10 +9,16 @@ <script type="text/javascript" src="../../ui/jquery.ui.position.js"></script> <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> <script type="text/javascript" src="../../ui/jquery.ui.menu.js"></script> + <script type="text/javascript" src="../../ui/jquery.ui.button.js"></script> <link type="text/css" href="../demos.css" rel="stylesheet" /> <script type="text/javascript"> $(function() { - $("button").each(function() { + $(".demo button").button({ + icons: { + primary: "ui-icon-home", + secondary: "ui-icon-triangle-1-s" + } + }).each(function() { $(this).next().menu({ select: function(event, ui) { $(this).hide(); |