aboutsummaryrefslogtreecommitdiffstats
path: root/demos/button/splitbutton.html
diff options
context:
space:
mode:
authorunknown <joern.zaefferer@gmail.com>2010-04-06 22:50:27 +0200
committerunknown <joern.zaefferer@gmail.com>2010-04-06 22:50:27 +0200
commitf29befb40ca541b9fb774dcac6dddc4771eddfc7 (patch)
tree72351b2cc83df3393c2d8b607368d32e1e505a4b /demos/button/splitbutton.html
parent34a71eab7bf64f7e2586e087425ed6fe56ceb058 (diff)
downloadjquery-ui-f29befb40ca541b9fb774dcac6dddc4771eddfc7.tar.gz
jquery-ui-f29befb40ca541b9fb774dcac6dddc4771eddfc7.zip
Button: some demo code formatting
Diffstat (limited to 'demos/button/splitbutton.html')
-rw-r--r--demos/button/splitbutton.html28
1 files changed, 15 insertions, 13 deletions
diff --git a/demos/button/splitbutton.html b/demos/button/splitbutton.html
index b42fe520a..7e4d66038 100644
--- a/demos/button/splitbutton.html
+++ b/demos/button/splitbutton.html
@@ -11,21 +11,23 @@
<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>