js: destroy dialog when closed
This commit is contained in:
parent
6ac05bf6cc
commit
a075ca07c9
|
@ -79,7 +79,14 @@ function displayPopup(event)
|
|||
/* get title out of html */
|
||||
var title = $html.find(title_selector).text();
|
||||
|
||||
$form.dialog({modal: true, 'title': title, width: 'auto'});
|
||||
$form.dialog({
|
||||
modal: true,
|
||||
'title': title,
|
||||
width: 'auto',
|
||||
close: function (ev, ui) {
|
||||
$(this).dialog('destroy');
|
||||
},
|
||||
});
|
||||
|
||||
/* if the form doesn't have an @action attribute, set it to URL */
|
||||
if (! $form.prop('action')) {
|
||||
|
|
Loading…
Reference in New Issue