completely remove dialog on cancel/continue

This commit is contained in:
Jörn Friedrich Dreyer 2013-09-06 16:50:45 +02:00
parent 4d04dd9c4c
commit 02d14aee17

View file

@ -306,7 +306,7 @@ var OCdialogs = {
if ( typeof controller.onCancel !== 'undefined') {
controller.onCancel(data);
}
$(dialog_id).ocdialog('close');
$(dialog_id).ocdialog('destroy').remove();
}
},
{
@ -318,6 +318,7 @@ var OCdialogs = {
controller.onContinue($(dialog_id + ' .conflict:not(.template)'));
}
$(dialog_id).ocdialog('close');
$(dialog_id).ocdialog('destroy').remove();
}
}];