diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-06-30 19:01:30 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:41 -0400 |
commit | f5eb4eff60003497aecfe0cedd902bb084074560 (patch) | |
tree | 3de45c873d49f12bc1083f8b715dc069fd494b2d | |
parent | d13f81d88a18836844ea4dc0f4e572fe07dafbb0 (diff) | |
download | jquery-ui-f5eb4eff60003497aecfe0cedd902bb084074560.tar.gz jquery-ui-f5eb4eff60003497aecfe0cedd902bb084074560.zip |
Menu: Update demos to use AMD
Ref #10119
-rw-r--r-- | demos/menu/categories.html | 10 | ||||
-rw-r--r-- | demos/menu/default.html | 10 | ||||
-rw-r--r-- | demos/menu/icons.html | 10 |
3 files changed, 6 insertions, 24 deletions
diff --git a/demos/menu/categories.html b/demos/menu/categories.html index 213e97a4e..a1526153e 100644 --- a/demos/menu/categories.html +++ b/demos/menu/categories.html @@ -4,18 +4,12 @@ <meta charset="utf-8"> <title>jQuery UI Menu - Categories</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/position.js"></script> - <script src="../../ui/menu.js"></script> <link rel="stylesheet" href="../demos.css"> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#menu" ).menu({ items: "> :not(.ui-widget-header)" }); - }); </script> <style> .ui-menu { width: 200px; } diff --git a/demos/menu/default.html b/demos/menu/default.html index cb4e237a8..2440ea72e 100644 --- a/demos/menu/default.html +++ b/demos/menu/default.html @@ -4,16 +4,10 @@ <meta charset="utf-8"> <title>jQuery UI Menu - Default functionality</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/position.js"></script> - <script src="../../ui/menu.js"></script> <link rel="stylesheet" href="../demos.css"> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#menu" ).menu(); - }); </script> <style> .ui-menu { width: 150px; } diff --git a/demos/menu/icons.html b/demos/menu/icons.html index 1afdba5e1..c3663179a 100644 --- a/demos/menu/icons.html +++ b/demos/menu/icons.html @@ -4,16 +4,10 @@ <meta charset="utf-8"> <title>jQuery UI Menu - Icons</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/position.js"></script> - <script src="../../ui/menu.js"></script> <link rel="stylesheet" href="../demos.css"> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#menu" ).menu(); - }); </script> <style> .ui-menu { width: 150px; } |