aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/button/default.html2
-rw-r--r--demos/controlgroup/splitbutton.html2
2 files changed, 2 insertions, 2 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>