Use type button to avoid undesired submits

This commit is contained in:
Eduardo Lundgren 2008-08-24 23:34:03 +00:00
parent d8dc2ded59
commit 9c53dbaf88

View 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);