]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Set the type on buttons. Fixes #6128 - Dialog: Buttons are not type="button".
authorScott González <scott.gonzalez@gmail.com>
Thu, 30 Sep 2010 17:17:52 +0000 (10:17 -0700)
committerScott González <scott.gonzalez@gmail.com>
Thu, 30 Sep 2010 17:17:52 +0000 (10:17 -0700)
ui/jquery.ui.dialog.js

index 11cc1960b024e09348214f04d52ea8482deafd54..f7d441894eeef6134d287a5f7b87b4aaed8d518b 100644 (file)
@@ -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);