Permalink
Browse files

Dialog: Set the type on buttons. Fixes #6128 - Dialog: Buttons are no…

…t type="button".
  • Loading branch information...
1 parent a2ddfd5 commit cd7f10d480c923d095af6cbd844cbbdb5bb3813e @scottgonzalez scottgonzalez committed Sep 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.dialog.js
@@ -376,7 +376,7 @@ $.widget("ui.dialog", {
props = $.isFunction( props ) ?
{ click: props, text: name } :
props;
- var button = $('<button></button>', props)
+ var button = $('<button type="button"></button>', props)
.unbind('click')
.click(function() {
props.click.apply(self.element[0], arguments);

0 comments on commit cd7f10d

Please sign in to comment.