Dialog: Set the type on buttons. Fixes #6128 - Dialog: Buttons are not type="button".

This commit is contained in:
Scott González 2010-09-30 10:17:52 -07:00
parent a2ddfd5107
commit cd7f10d480

View 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);