N. 533: when reloading the ticket form (due to an alternate initial state path)

1) the value of some controls (non-text inputs in n:n links) was not preserved,
2) popup dialogs and CKEditor instances were not properly destroyed and re-created.

SVN:trunk[4515]
This commit is contained in:
Denis Flaven
2016-12-13 10:54:45 +00:00
parent c185e1fc4f
commit d143f0880b
2 changed files with 7 additions and 2 deletions

View File

@@ -236,7 +236,7 @@ function WizardHelper(sClass, sFormPrefix, sState)
$('#'+sFormId).find('.htmlEditor').each(function() {
var sId = $(this).attr('id');
var editorInst = CKEDITOR.instances[sId];
if (editorInst)
if (editorInst.status == 'ready')
{
editorInst.destroy(true);
}