github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 832
    • 188
  • Source
  • Commits
  • Network (188)
  • Graphs
  • Tree: 05cfced

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (19)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

demos: effects - added return false; to button click handlers
rdworth (author)
Mon Mar 02 01:26:09 -0800 2009
commit  05cfcedaa2be0c098845
tree    815067a3987d4eee9332
parent  f45e2b2da3467254c2a3
M demos/addClass/default.html 1 •
M demos/effect/default.html 3 •••
M demos/hide/default.html 1 •
M demos/removeClass/default.html 1 •
M demos/show/default.html 1 •
M demos/switchClass/default.html 5 •••••
M demos/toggle/default.html 2 ••
M demos/toggleClass/default.html 1 •
Txt demos/addClass/default.html
  • View file @ 05cfced
... ...
@@ -16,6 +16,7 @@
16 16
   $(function() {
17 17
     $("#button").click(function() {
18 18
       $('#effect').addClass('newClass', 1000, callback);
  19
+      return false;
19 20
     });
20 21
     
21 22
     function callback(){
Txt demos/effect/default.html
  • View file @ 05cfced
... ...
@@ -4,7 +4,7 @@
4 4
   <title>jQuery UI Effects - Effect Demo</title>
5 5
   <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6 6
   <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
7  
-    <script type="text/javascript" src="../../ui/effects.core.js"></script>
  7
+  <script type="text/javascript" src="../../ui/effects.core.js"></script>
8 8
   <script type="text/javascript" src="../../ui/effects.blind.js"></script>
9 9
   <script type="text/javascript" src="../../ui/effects.bounce.js"></script>
10 10
   <script type="text/javascript" src="../../ui/effects.clip.js"></script>
... ...
@@ -54,6 +54,7 @@
54 54
     //set effect from select menu value
55 55
     $("#button").click(function() {
56 56
       runEffect();
  57
+      return false;
57 58
     });
58 59
   });
59 60
   </script>
Txt demos/hide/default.html
  • View file @ 05cfced
... ...
@@ -54,6 +54,7 @@
54 54
     //set effect from select menu value
55 55
     $("#button").click(function() {
56 56
       runEffect();
  57
+      return false;
57 58
     });
58 59
 
59 60
   });
Txt demos/removeClass/default.html
  • View file @ 05cfced
... ...
@@ -16,6 +16,7 @@
16 16
   $(function() {
17 17
     $("#button").click(function() {
18 18
       $('#effect').removeClass('newClass', 1000, callback);
  19
+      return false;
19 20
     });
20 21
     
21 22
     function callback(){
Txt demos/show/default.html
  • View file @ 05cfced
... ...
@@ -54,6 +54,7 @@
54 54
     //set effect from select menu value
55 55
     $("#button").click(function() {
56 56
       runEffect();
  57
+      return false;
57 58
     });
58 59
     
59 60
     $("#effect").fadeOut();
Txt demos/switchClass/default.html
  • View file @ 05cfced
... ...
@@ -17,8 +17,9 @@
17 17
   <script type="text/javascript">
18 18
   $(function() {
19 19
     $("#button").click(function(){
20  
-        $(".newClass").switchClass('newClass', 'anotherNewClass', 1000);
21  
-        $(".anotherNewClass").switchClass('anotherNewClass', 'newClass', 1000);
  20
+      $(".newClass").switchClass('newClass', 'anotherNewClass', 1000);
  21
+      $(".anotherNewClass").switchClass('anotherNewClass', 'newClass', 1000);
  22
+      return false;  
22 23
     });
23 24
   });
24 25
   </script>
Txt demos/toggle/default.html
  • View file @ 05cfced
... ...
@@ -45,8 +45,8 @@
45 45
     //set effect from select menu value
46 46
     $("#button").click(function() {
47 47
       runEffect();
  48
+      return false;
48 49
     });
49  
-    
50 50
 
51 51
   });
52 52
   </script>
Txt demos/toggleClass/default.html
  • View file @ 05cfced
... ...
@@ -17,6 +17,7 @@
17 17
   $(function() {
18 18
     $("#button").click(function() {
19 19
       $('#effect').toggleClass('newClass', 1000);
  20
+      return false;
20 21
     });
21 22
   });
22 23
   </script>

0 notes on commit 05cfced

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
  • English
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文