Merge pull request #4183 from IonAgorria/patch-3

JS error preventing hiding of dates at object line
This commit is contained in:
Laurent Destailleur 2015-12-13 19:57:37 +01:00
commit dc6ec91b2c

View File

@ -481,7 +481,7 @@ 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)
if (typeof CKEDITOR == "object" && typeof CKEDITOR.instances != "undefined")
{
var editor = CKEDITOR.instances['dp_desc'];
if (editor) { editor.focus(); }
@ -587,7 +587,7 @@ 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)
if (typeof CKEDITOR == "object" && typeof CKEDITOR.instances != "undefined")
{
var editor = CKEDITOR.instances['dp_desc'];
if (editor) { editor.focus(); }