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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 554
    • 89
  • Source
  • Commits
  • Network (89)
  • Graphs
  • Tree: f29befb

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (18)
    • 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

Button: some demo code formatting
jzaefferer (author)
Tue Apr 06 13:50:27 -0700 2010
commit  f29befb40ca541b9fb77
tree    72351b2cc83df3393c2d
parent  34a71eab7bf64f7e2586
M demos/button/splitbutton.html 28 ••••
Txt demos/button/splitbutton.html
  • View file @ f29befb
... ...
@@ -11,21 +11,23 @@
11 11
   <link type="text/css" href="../demos.css" rel="stylesheet" />
12 12
   <script type="text/javascript">
13 13
   $(function() {
14  
-    $("#rerun").button().click(function() {
15  
-      alert("Running the last action");
16  
-    })
  14
+    $("#rerun")
  15
+      .button()
  16
+      .click( function() {
  17
+        alert( "Running the last action" );
  18
+      })
17 19
     .next()
18  
-    .button({
19  
-      text: false,
20  
-      icons: {
21  
-        primary: "ui-icon-triangle-1-s"
22  
-      }
23  
-    })
24  
-    .click(function() {
25  
-      alert("Could display a menu to select an action");
26  
-    })
  20
+      .button( {
  21
+        text: false,
  22
+        icons: {
  23
+          primary: "ui-icon-triangle-1-s"
  24
+        }
  25
+      })
  26
+      .click( function() {
  27
+        alert( "Could display a menu to select an action" );
  28
+      })
27 29
     .parent()
28  
-    .buttonset();
  30
+      .buttonset();
29 31
   });
30 32
   </script>
31 33
   <style>

0 notes on commit f29befb

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