Dialog: add required closing tag </button>. Fixes #8639 - jQuery 1.9.0 dialog on a XHTML page is broken if buttons are defined

This commit is contained in:
Richard D. Worth 2012-10-09 08:41:18 -04:00
parent 77568347cf
commit 1e6e4ce4dc

View File

@ -364,7 +364,7 @@ $.widget("ui.dialog", {
props = $.isFunction( props ) ? props = $.isFunction( props ) ?
{ click: props, text: name } : { click: props, text: name } :
props; props;
var button = $( "<button type='button'>" ) var button = $( "<button type='button'></button>" )
.attr( props, true ) .attr( props, true )
.unbind( "click" ) .unbind( "click" )
.click(function() { .click(function() {