JQueryUI dialog hide option prevents close event from firing
问题 When using the JQueryUI dialog with the hide option added, the close event never fires. See my fiddle below to repro both ways. Is there a workaround that I'm not aware of? I tried reordering them, but it didn't work. Any ideas? http://jsfiddle.net/johntrepreneur/f4Ytr/3/ JAVASCRIPT (used for fiddle): var $dialog = $('<div></div>').html('Using the hide dialog option ' + 'prevents the close event from firing. Clicking close does ' + 'nothing. Try commenting out the javascript line with the ' +