diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-07-14 20:34:29 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-07-14 20:34:29 +0200 |
commit | b53e7beb6884a8de7710146112bc48aecd8737b4 (patch) | |
tree | e81808cacc04a3e4a39115c08716a7ed1f977044 /demos | |
parent | bb00536756b40a67288fab1803741d18bf3b5e4c (diff) | |
download | jquery-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.html | 2 | ||||
-rw-r--r-- | demos/controlgroup/splitbutton.html | 2 |
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> |