Skip to content

Commit

Permalink
Button: some demo code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Apr 6, 2010
1 parent 34a71ea commit f29befb
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions demos/button/splitbutton.html
Expand Up @@ -11,21 +11,23 @@
<link type="text/css" href="../demos.css" rel="stylesheet" /> <link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$("#rerun").button().click(function() { $("#rerun")
alert("Running the last action"); .button()
}) .click( function() {
alert( "Running the last action" );
})
.next() .next()
.button({ .button( {
text: false, text: false,
icons: { icons: {
primary: "ui-icon-triangle-1-s" primary: "ui-icon-triangle-1-s"
} }
}) })
.click(function() { .click( function() {
alert("Could display a menu to select an action"); alert( "Could display a menu to select an action" );
}) })
.parent() .parent()
.buttonset(); .buttonset();
}); });
</script> </script>
<style> <style>
Expand Down

0 comments on commit f29befb

Please sign in to comment.