Skip to content
Snippets Groups Projects
Commit bbfd1388 authored by Ion Agorria's avatar Ion Agorria
Browse files

Missed another CKEDITOR ref

parent 238f9770
No related branches found
No related tags found
No related merge requests found
......@@ -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(); }
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment