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

This commit is contained in:
Richard Worth 2009-03-02 09:26:09 +00:00
parent f45e2b2da3
commit 05cfcedaa2
8 changed files with 11 additions and 4 deletions

View File

@ -16,6 +16,7 @@
$(function() {
$("#button").click(function() {
$('#effect').addClass('newClass', 1000, callback);
return false;
});
function callback(){

View File

@ -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>

View File

@ -54,6 +54,7 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
return false;
});
});

View File

@ -16,6 +16,7 @@
$(function() {
$("#button").click(function() {
$('#effect').removeClass('newClass', 1000, callback);
return false;
});
function callback(){

View File

@ -54,6 +54,7 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
return false;
});
$("#effect").fadeOut();

View File

@ -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>

View File

@ -45,8 +45,8 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
return false;
});
});
</script>

View File

@ -17,6 +17,7 @@
$(function() {
$("#button").click(function() {
$('#effect').toggleClass('newClass', 1000);
return false;
});
});
</script>