diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-08-24 23:34:03 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-08-24 23:34:03 +0000 |
commit | 9c53dbaf88aaab286805b237c8a62942a0504a04 (patch) | |
tree | c3f99e85318bbc855b02b121d24b78aa6ea8efbf /ui/ui.dialog.js | |
parent | d8dc2ded59e05f1535e3741a3cf83d38adef179c (diff) | |
download | jquery-ui-9c53dbaf88aaab286805b237c8a62942a0504a04.tar.gz jquery-ui-9c53dbaf88aaab286805b237c8a62942a0504a04.zip |
Use type button to avoid undesired submits
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r-- | ui/ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index b8f908487..13b69a7fb 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -324,7 +324,7 @@ $.widget("ui.dialog", { if (hasButtons) { uiDialogButtonPane.show(); $.each(buttons, function(name, fn) { - $('<button/>') + $('<button type="button"></button>') .text(name) .click(function() { fn.apply(self.element[0], arguments); }) .appendTo(uiDialogButtonPane); |