]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Update demos to use AMD
authorAlexander Schmitz <arschmitz@gmail.com>
Tue, 30 Jun 2015 23:01:30 +0000 (19:01 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Tue, 21 Jul 2015 15:00:41 +0000 (11:00 -0400)
Ref #10119

demos/menu/categories.html
demos/menu/default.html
demos/menu/icons.html

index 213e97a4eb2820015348f1ca7f0dd0d5652e5b8d..a1526153e0ead7c3bb449fc2dc1312854ba6c3a0 100644 (file)
@@ -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; }
index cb4e237a8d1ad77c56bbf693839f2de23220352d..2440ea72e89ac1302d4fc5d52849f4e9ed437e1c 100644 (file)
@@ -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; }
index 1afdba5e12c5d3b9e3056ae9a5210869a5d8e0bf..c3663179a463033e56e29376f203fc44402b12bd 100644 (file)
@@ -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; }