mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Use type button to avoid undesired submits
This commit is contained in:
parent
d8dc2ded59
commit
9c53dbaf88
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user