Button: some demo code formatting

This commit is contained in:
unknown 2010-04-06 22:50:27 +02:00
parent 34a71eab7b
commit f29befb40c

View File

@ -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>