From bbfd1388960e56a7bcba1a5a2daf47fea6b2d1fb Mon Sep 17 00:00:00 2001 From: Ion Agorria Date: Wed, 9 Dec 2015 18:00:05 +0100 Subject: [PATCH] Missed another CKEDITOR ref --- htdocs/core/tpl/objectline_create.tpl.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index a2f4ebd4d69..6c507d55910 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -515,7 +515,7 @@ jQuery(document).ready(function() { setforfree(); if (jQuery('#select_type').val() >= 0) { - /* focus work on a standard textarea but not if field was replaced with CKEDITOR */ + /* focus work on a standard textarea */ jQuery('#dp_desc').focus(); } if (jQuery('#select_type').val() == '0') jQuery('#trlinefordates').hide(); @@ -615,14 +615,8 @@ jQuery(document).ready(function() { /* To set focus */ if (jQuery('#idprod').val() > 0 || jQuery('#idprodfournprice').val() > 0) { - /* focus work on a standard textarea but not if field was replaced with CKEDITOR */ + /* focus work on a standard textarea */ jQuery('#dp_desc').focus(); - /* focus if CKEDITOR */ - if (CKEDITOR) - { - var editor = CKEDITOR.instances['dp_desc']; - if (editor) { editor.focus(); } - } } });