mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
All: Remove deprecated .click() usage in demos/tests
This commit is contained in:
parent
bb00536756
commit
b53e7beb68
@ -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>
|
||||
|
@ -21,7 +21,7 @@
|
||||
}
|
||||
});
|
||||
$( ".controlgroup" ).controlgroup();
|
||||
$( "button" ).click(function() {
|
||||
$( "button" ).on( "click", function() {
|
||||
$( ".output" ).append( "<li>Running Last Action...</li>" );
|
||||
});
|
||||
</script>
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user