mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-29 06:58:03 -05:00
Use type button to avoid undesired submits
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user