aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2022-07-14 20:34:29 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2022-07-14 20:34:29 +0200
commitb53e7beb6884a8de7710146112bc48aecd8737b4 (patch)
treee81808cacc04a3e4a39115c08716a7ed1f977044 /demos
parentbb00536756b40a67288fab1803741d18bf3b5e4c (diff)
downloadjquery-ui-b53e7beb6884a8de7710146112bc48aecd8737b4.tar.gz
jquery-ui-b53e7beb6884a8de7710146112bc48aecd8737b4.zip
All: Remove deprecated .click() usage in demos/tests
Diffstat (limited to 'demos')
-rw-r--r--demos/button/default.html2
-rw-r--r--demos/controlgroup/splitbutton.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/button/default.html b/demos/button/default.html
index 644dcd225..7ac6a325d 100644
--- a/demos/button/default.html
+++ b/demos/button/default.html
@@ -9,7 +9,7 @@
<script src="../../external/requirejs/require.js"></script>
<script src="../bootstrap.js">
$( ".widget input[type=submit], .widget a, .widget button" ).button();
- $( "button, input, a" ).click( function( event ) {
+ $( "button, input, a" ).on( "click", function( event ) {
event.preventDefault();
} );
</script>
diff --git a/demos/controlgroup/splitbutton.html b/demos/controlgroup/splitbutton.html
index ec2b78876..27f949816 100644
--- a/demos/controlgroup/splitbutton.html
+++ b/demos/controlgroup/splitbutton.html
@@ -21,7 +21,7 @@
}
});
$( ".controlgroup" ).controlgroup();
- $( "button" ).click(function() {
+ $( "button" ).on( "click", function() {
$( ".output" ).append( "<li>Running Last Action...</li>" );
});
</script>