r2159 - in trunk/demos: addClass effect hide removeClass show switchClass toggle toggleClass
Author: rdworth
Date: Mon Mar 2 01:26:09 2009
New Revision: 2159
Modified:
trunk/demos/addClass/default.html
trunk/demos/effect/default.html
trunk/demos/hide/default.html
trunk/demos/removeClass/default.html
trunk/demos/show/default.html
trunk/demos/switchClass/default.html
trunk/demos/toggle/default.html
trunk/demos/toggleClass/default.html
Log:
demos: effects - added return false; to button click handlers
Modified: trunk/demos/addClass/default.html
==============================================================================
--- trunk/demos/addClass/default.html (original)
+++ trunk/demos/addClass/default.html Mon Mar 2 01:26:09 2009
@@ -16,6 +16,7 @@
$(function() {
$("#button").click(function() {
$('#effect').addClass('newClass', 1000, callback);
+ return false;
});
function callback(){
Modified: trunk/demos/effect/default.html
==============================================================================
--- trunk/demos/effect/default.html (original)
+++ trunk/demos/effect/default.html Mon Mar 2 01:26:09 2009
@@ -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>
Modified: trunk/demos/hide/default.html
==============================================================================
--- trunk/demos/hide/default.html (original)
+++ trunk/demos/hide/default.html Mon Mar 2 01:26:09 2009
@@ -54,6 +54,7 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
+ return false;
});
});
Modified: trunk/demos/removeClass/default.html
==============================================================================
--- trunk/demos/removeClass/default.html (original)
+++ trunk/demos/removeClass/default.html Mon Mar 2 01:26:09 2009
@@ -16,6 +16,7 @@
$(function() {
$("#button").click(function() {
$('#effect').removeClass('newClass', 1000, callback);
+ return false;
});
function callback(){
Modified: trunk/demos/show/default.html
==============================================================================
--- trunk/demos/show/default.html (original)
+++ trunk/demos/show/default.html Mon Mar 2 01:26:09 2009
@@ -54,6 +54,7 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
+ return false;
});
$("#effect").fadeOut();
Modified: trunk/demos/switchClass/default.html
==============================================================================
--- trunk/demos/switchClass/default.html (original)
+++ trunk/demos/switchClass/default.html Mon Mar 2 01:26:09 2009
@@ -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>
Modified: trunk/demos/toggle/default.html
==============================================================================
--- trunk/demos/toggle/default.html (original)
+++ trunk/demos/toggle/default.html Mon Mar 2 01:26:09 2009
@@ -45,8 +45,8 @@
//set effect from select menu value
$("#button").click(function() {
runEffect();
+ return false;
});
-
});
</script>
Modified: trunk/demos/toggleClass/default.html
==============================================================================
--- trunk/demos/toggleClass/default.html (original)
+++ trunk/demos/toggleClass/default.html Mon Mar 2 01:26:09 2009
@@ -17,6 +17,7 @@
$(function() {
$("#button").click(function() {
$('#effect').toggleClass('newClass', 1000);
+ return false;
});
});
</script>