From 238f9770025da83d3139cc73660d8f00840464c4 Mon Sep 17 00:00:00 2001 From: Ion Agorria Date: Tue, 8 Dec 2015 15:45:24 +0100 Subject: [PATCH] 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? --- htdocs/core/tpl/objectline_create.tpl.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index d7949fa1d52..a2f4ebd4d69 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -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();