JS error preventing hiding of dates at object line

The "if (CKEDITOR)" gives "ReferenceError: CKEDITOR is not defined" at JS console causing the next code to don't execute, is this code obsolete?
This commit is contained in:
Ion Agorria 2015-12-08 15:45:24 +01:00
parent 5710bcd38a
commit 238f977002

View File

@ -517,12 +517,6 @@ jQuery(document).ready(function() {
{
/* focus work on a standard textarea but not if field was replaced with CKEDITOR */
jQuery('#dp_desc').focus();
/* focus if CKEDITOR */
if (CKEDITOR)
{
var editor = CKEDITOR.instances['dp_desc'];
if (editor) { editor.focus(); }
}
}
if (jQuery('#select_type').val() == '0') jQuery('#trlinefordates').hide();
else jQuery('#trlinefordates').show();