Skip to content
Permalink
Browse files

demos: effects - added return false; to button click handlers

  • Loading branch information...
rdworth committed Mar 2, 2009
1 parent f45e2b2 commit 05cfcedaa2be0c098845a6a2f997635cf7dfa6eb
@@ -16,6 +16,7 @@
$(function() {
$("#button").click(function() {
$('#effect').addClass('newClass', 1000, callback);
return false;
});
function callback(){
@@ -4,7 +4,7 @@
<title>jQuery UI Effects - Effect Demo</title>
<link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.blind.js"></script>
<script type="text/javascript" src="../../ui/effects.bounce.js"></script>
<script type="text/javascript" src="../../ui/effects.clip.js"></script>
@@ -54,6 +54,7 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
return false;
});
});
</script>
@@ -54,6 +54,7 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
return false;
});
});
@@ -16,6 +16,7 @@
$(function() {
$("#button").click(function() {
$('#effect').removeClass('newClass', 1000, callback);
return false;
});
function callback(){
@@ -54,6 +54,7 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
return false;
});
$("#effect").fadeOut();
@@ -17,8 +17,9 @@
<script type="text/javascript">
$(function() {
$("#button").click(function(){
$(".newClass").switchClass('newClass', 'anotherNewClass', 1000);
$(".anotherNewClass").switchClass('anotherNewClass', 'newClass', 1000);
$(".newClass").switchClass('newClass', 'anotherNewClass', 1000);
$(".anotherNewClass").switchClass('anotherNewClass', 'newClass', 1000);
return false;
});
});
</script>
@@ -45,8 +45,8 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
return false;
});
});
</script>
@@ -17,6 +17,7 @@
$(function() {
$("#button").click(function() {
$('#effect').toggleClass('newClass', 1000);
return false;
});
});
</script>

0 comments on commit 05cfced

Please sign in to comment.
You can’t perform that action at this time.