]> source.dussan.org Git - jquery-ui.git/commitdiff
Use type button to avoid undesired submits
authorEduardo Lundgren <eduardolundgren@gmail.com>
Sun, 24 Aug 2008 23:34:03 +0000 (23:34 +0000)
committerEduardo Lundgren <eduardolundgren@gmail.com>
Sun, 24 Aug 2008 23:34:03 +0000 (23:34 +0000)
ui/ui.dialog.js

index b8f908487290c5ac8bf2c90d8406de455c321091..13b69a7fb3a4f131bd1138119937f5a71dca117f 100644 (file)
@@ -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);