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/button | |
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/button')
-rw-r--r-- | demos/button/default.html | 2 |
1 files changed, 1 insertions, 1 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> |