aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/checkboxradio/checkboxradio.html
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-10 15:48:09 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-15 00:38:40 +0200
commit03cde342cd360793a2439fa8dc93e441bbf73333 (patch)
tree1ee5d542d8c00e054df5e23a7eb1a7dde76e02e6 /tests/visual/checkboxradio/checkboxradio.html
parent9887579b61972647f1478e64c5d7987f9d9cb039 (diff)
downloadjquery-ui-03cde342cd360793a2439fa8dc93e441bbf73333.tar.gz
jquery-ui-03cde342cd360793a2439fa8dc93e441bbf73333.zip
All: Remove the deprecated `ui/core.js` file
Also, fix checkboxradio visual tests. Ref gh-2249
Diffstat (limited to 'tests/visual/checkboxradio/checkboxradio.html')
-rw-r--r--tests/visual/checkboxradio/checkboxradio.html14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/visual/checkboxradio/checkboxradio.html b/tests/visual/checkboxradio/checkboxradio.html
index 8d26daeff..17a71ce7e 100644
--- a/tests/visual/checkboxradio/checkboxradio.html
+++ b/tests/visual/checkboxradio/checkboxradio.html
@@ -4,13 +4,8 @@
<meta charset="utf-8">
<title>jQuery UI - Checkboxes</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/checkboxradio.js"></script>
- <script>
- $(function() {
+ <script src="../../../external/requirejs/require.js"></script>
+ <script src="../../../demos/bootstrap.js">
var checkboxes = $( "form input" ).checkboxradio();
$( ".controls input, .controls select" ).on( "change keyup", function() {
@@ -23,15 +18,14 @@
if ( option != "label" || value !== "" ) {
checkboxes.checkboxradio( "option", option, value );
}
- });
+ } );
$( ".controls > button" ).on( "click", function() {
if ( this.id !== "create" ) {
checkboxes.checkboxradio( this.id );
} else {
checkboxes.checkboxradio();
}
- });
- });
+ } );
</script>
<style>
#format { margin-top: 2em; }