Skip to content

Commit

Permalink
All: Remove deprecated .click() usage in demos/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Jul 14, 2022
1 parent bb00536 commit b53e7be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/button/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion demos/controlgroup/splitbutton.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
});
$( ".controlgroup" ).controlgroup();
$( "button" ).click(function() {
$( "button" ).on( "click", function() {
$( ".output" ).append( "<li>Running Last Action...</li>" );
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion tests/visual/checkboxradio/checkboxradio.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
checkboxes.checkboxradio( "option", option, value );
}
});
$( ".controls > button" ).click( function() {
$( ".controls > button" ).on( "click", function() {
if ( this.id !== "create" ) {
checkboxes.checkboxradio( this.id );
} else {
Expand Down

0 comments on commit b53e7be

Please sign in to comment.