diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-06-30 15:22:59 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:41 -0400 |
commit | 0935c9af366bfc412db4cc2bea8b544d5588a7b2 (patch) | |
tree | 126daf27ecdbdeffeff4a0f5fd64ff9f493e22d9 /demos/autocomplete/combobox.html | |
parent | 9484718a00d68a36f5600c6c49365d134d1df79e (diff) | |
download | jquery-ui-0935c9af366bfc412db4cc2bea8b544d5588a7b2.tar.gz jquery-ui-0935c9af366bfc412db4cc2bea8b544d5588a7b2.zip |
Autocomplete: Update demos to use AMD
Ref #10119
Diffstat (limited to 'demos/autocomplete/combobox.html')
-rw-r--r-- | demos/autocomplete/combobox.html | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index 76d792470..409e64d7c 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -4,14 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Autocomplete - Combobox</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/button.js"></script> - <script src="../../ui/position.js"></script> - <script src="../../ui/menu.js"></script> - <script src="../../ui/autocomplete.js"></script> - <script src="../../ui/tooltip.js"></script> <link rel="stylesheet" href="../demos.css"> <style> .custom-combobox { @@ -30,8 +22,8 @@ padding: 5px 10px; } </style> - <script> - (function( $ ) { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js" data-modules="tooltip button"> $.widget( "custom.combobox", { _create: function() { this.wrapper = $( "<span>" ) @@ -161,14 +153,11 @@ this.element.show(); } }); - })( jQuery ); - $(function() { $( "#combobox" ).combobox(); $( "#toggle" ).on( "click", function() { $( "#combobox" ).toggle(); }); - }); </script> </head> <body> |