]> source.dussan.org Git - jquery-ui.git/commitdiff
Button: some demo code formatting
authorunknown <joern.zaefferer@gmail.com>
Tue, 6 Apr 2010 20:50:27 +0000 (22:50 +0200)
committerunknown <joern.zaefferer@gmail.com>
Tue, 6 Apr 2010 20:50:27 +0000 (22:50 +0200)
demos/button/splitbutton.html

index b42fe520a27e941f9ed870eb21977140b4d9d394..7e4d660386e83e7635373f9a45efeb17f38d14e5 100644 (file)
        <link type="text/css" href="../demos.css" rel="stylesheet" />
        <script type="text/javascript">
        $(function() {
-               $("#rerun").button().click(function() {
-                       alert("Running the last action");
-               })
+               $("#rerun")
+                       .button()
+                       .click( function() {
+                               alert( "Running the last action" );
+                       })
                .next()
-               .button({
-                       text: false,
-                       icons: {
-                               primary: "ui-icon-triangle-1-s"
-                       }
-               })
-               .click(function() {
-                       alert("Could display a menu to select an action");
-               })
+                       .button( {
+                               text: false,
+                               icons: {
+                                       primary: "ui-icon-triangle-1-s"
+                               }
+                       })
+                       .click( function() {
+                               alert( "Could display a menu to select an action" );
+                       })
                .parent()
-               .buttonset();
+                       .buttonset();
        });
        </script>
        <style>