aboutsummaryrefslogtreecommitdiffstats
path: root/demos/button/splitbutton.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-09-09 22:43:06 -0400
committerScott González <scott.gonzalez@gmail.com>2010-09-09 22:45:43 -0400
commit8b4d1877465d92de68c83a92b9c2eee2a5e096fa (patch)
tree2ee4054cd75128faa49a66e477cd05342142d494 /demos/button/splitbutton.html
parenteba3067479676d9fde9e1fcca76ba720cd9a4cee (diff)
downloadjquery-ui-8b4d1877465d92de68c83a92b9c2eee2a5e096fa.tar.gz
jquery-ui-8b4d1877465d92de68c83a92b9c2eee2a5e096fa.zip
Button demos: Coding standards.
Diffstat (limited to 'demos/button/splitbutton.html')
-rw-r--r--demos/button/splitbutton.html61
1 files changed, 28 insertions, 33 deletions
diff --git a/demos/button/splitbutton.html b/demos/button/splitbutton.html
index 7e4d66038..e1faa12af 100644
--- a/demos/button/splitbutton.html
+++ b/demos/button/splitbutton.html
@@ -1,33 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8" />
- <title>jQuery UI Button - Default demo</title>
- <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.button.js"></script>
- <link type="text/css" href="../demos.css" rel="stylesheet" />
- <script type="text/javascript">
+ <meta charset="utf-8">
+ <title>jQuery UI Button - Split button</title>
+ <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+ <script src="../../jquery-1.4.2.js"></script>
+ <script src="../../ui/jquery.ui.core.js"></script>
+ <script src="../../ui/jquery.ui.widget.js"></script>
+ <script src="../../ui/jquery.ui.button.js"></script>
+ <link rel="stylesheet" href="../demos.css">
+ <script>
$(function() {
- $("#rerun")
+ $( "#rerun" )
.button()
- .click( function() {
+ .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" );
- })
- .parent()
- .buttonset();
+ .next()
+ .button( {
+ text: false,
+ icons: {
+ primary: "ui-icon-triangle-1-s"
+ }
+ })
+ .click(function() {
+ alert( "Could display a menu to select an action" );
+ })
+ .parent()
+ .buttonset();
});
</script>
<style>
@@ -38,23 +38,18 @@
<div class="demo">
- <div>
- <button id="rerun">Run last action</button>
- <button id="select">Select an action</button>
- </div>
+<div>
+ <button id="rerun">Run last action</button>
+ <button id="select">Select an action</button>
+</div>
</div><!-- End demo -->
<div class="demo-description">
-
-<p>An example of a split button built with two buttons: A plan button with just text, one with only a primary icon
-and no text. Both are grouped together in a set.</p>
-
+<p>An example of a split button built with two buttons: A plan button with just text, one with only a primary icon and no text. Both are grouped together in a set.</p>
</div><!-- End demo-description -->
-
-
</body>
</html>