diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-09-30 10:17:52 -0700 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-30 10:17:52 -0700 |
commit | cd7f10d480c923d095af6cbd844cbbdb5bb3813e (patch) | |
tree | aa6d07267c1fa083ed9db9f73fe8bbf835bad74d /ui | |
parent | a2ddfd51072952969792cd3b503e573ea8f18d30 (diff) | |
download | jquery-ui-cd7f10d480c923d095af6cbd844cbbdb5bb3813e.tar.gz jquery-ui-cd7f10d480c923d095af6cbd844cbbdb5bb3813e.zip |
Dialog: Set the type on buttons. Fixes #6128 - Dialog: Buttons are not type="button".
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 11cc1960b..f7d441894 100644 --- a/ui/jquery.ui.dialog.js +++ b/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); |