All: Remove deprecated .click() usage in demos/tests

This commit is contained in:
Michał Gołębiowski-Owczarek 2022-07-14 20:34:29 +02:00
parent bb00536756
commit b53e7beb68
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<script src="../../external/requirejs/require.js"></script> <script src="../../external/requirejs/require.js"></script>
<script src="../bootstrap.js"> <script src="../bootstrap.js">
$( ".widget input[type=submit], .widget a, .widget button" ).button(); $( ".widget input[type=submit], .widget a, .widget button" ).button();
$( "button, input, a" ).click( function( event ) { $( "button, input, a" ).on( "click", function( event ) {
event.preventDefault(); event.preventDefault();
} ); } );
</script> </script>

View File

@ -21,7 +21,7 @@
} }
}); });
$( ".controlgroup" ).controlgroup(); $( ".controlgroup" ).controlgroup();
$( "button" ).click(function() { $( "button" ).on( "click", function() {
$( ".output" ).append( "<li>Running Last Action...</li>" ); $( ".output" ).append( "<li>Running Last Action...</li>" );
}); });
</script> </script>

View File

@ -24,7 +24,7 @@
checkboxes.checkboxradio( "option", option, value ); checkboxes.checkboxradio( "option", option, value );
} }
}); });
$( ".controls > button" ).click( function() { $( ".controls > button" ).on( "click", function() {
if ( this.id !== "create" ) { if ( this.id !== "create" ) {
checkboxes.checkboxradio( this.id ); checkboxes.checkboxradio( this.id );
} else { } else {