diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-06-30 22:17:29 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:41 -0400 |
commit | 91ee61e78043581fcf5fbcfe105603b6279d3724 (patch) | |
tree | 1f9f3b16175f1997844995e42fee961f0785e088 /demos | |
parent | 4ea6f8f0b42c630174de684767de54bd078a5578 (diff) | |
download | jquery-ui-91ee61e78043581fcf5fbcfe105603b6279d3724.tar.gz jquery-ui-91ee61e78043581fcf5fbcfe105603b6279d3724.zip |
Selectable: Update demos to use AMD
Ref #10119
Diffstat (limited to 'demos')
-rw-r--r-- | demos/selectable/default.html | 10 | ||||
-rw-r--r-- | demos/selectable/display-grid.html | 10 | ||||
-rw-r--r-- | demos/selectable/serialize.html | 10 |
3 files changed, 6 insertions, 24 deletions
diff --git a/demos/selectable/default.html b/demos/selectable/default.html index 6b72bda75..d71b25ff9 100644 --- a/demos/selectable/default.html +++ b/demos/selectable/default.html @@ -4,11 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Selectable - 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/mouse.js"></script> - <script src="../../ui/selectable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> @@ -18,10 +13,9 @@ #selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; } #selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#selectable" ).selectable(); - }); </script> </head> <body> diff --git a/demos/selectable/display-grid.html b/demos/selectable/display-grid.html index 27babbf6a..f561673ed 100644 --- a/demos/selectable/display-grid.html +++ b/demos/selectable/display-grid.html @@ -4,11 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Selectable - Display as grid</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/mouse.js"></script> - <script src="../../ui/selectable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> @@ -18,10 +13,9 @@ #selectable { list-style-type: none; margin: 0; padding: 0; width: 450px; } #selectable li { margin: 3px; padding: 1px; float: left; width: 100px; height: 80px; font-size: 4em; text-align: center; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#selectable" ).selectable(); - }); </script> </head> <body> diff --git a/demos/selectable/serialize.html b/demos/selectable/serialize.html index 82391b9e7..9acd37fd5 100644 --- a/demos/selectable/serialize.html +++ b/demos/selectable/serialize.html @@ -4,11 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Selectable - Serialize</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/mouse.js"></script> - <script src="../../ui/selectable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> @@ -18,8 +13,8 @@ #selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; } #selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#selectable" ).selectable({ stop: function() { var result = $( "#select-result" ).empty(); @@ -29,7 +24,6 @@ }); } }); - }); </script> </head> <body> |