diff options
-rw-r--r-- | demos/button/default.html | 2 | ||||
-rw-r--r-- | demos/controlgroup/splitbutton.html | 2 | ||||
-rw-r--r-- | tests/visual/checkboxradio/checkboxradio.html | 2 |
3 files changed, 3 insertions, 3 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> diff --git a/tests/visual/checkboxradio/checkboxradio.html b/tests/visual/checkboxradio/checkboxradio.html index a472c9df2..8d26daeff 100644 --- a/tests/visual/checkboxradio/checkboxradio.html +++ b/tests/visual/checkboxradio/checkboxradio.html @@ -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 { |