[otrs-cvs] FAQ/Kernel/Output/HTML/Standard AgentFAQ.dtl,1.49,1.50

CVS commits notifications of OTRS.org cvs-log at otrs.org
Thu Jul 23 17:12:11 GMT 2009


Comments:
Update of /home/cvs/FAQ/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv27724/Kernel/Output/HTML/Standard

Modified Files:
	AgentFAQ.dtl 
Log Message:
Fixed problem with not closing FAQ-PopUp Window after inserting the FAQ to ticket body.

Author: ub

Index: AgentFAQ.dtl
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Output/HTML/Standard/AgentFAQ.dtl,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** AgentFAQ.dtl	21 Jul 2009 22:53:02 -0000	1.49
--- AgentFAQ.dtl	23 Jul 2009 17:12:06 -0000	1.50
***************
*** 224,232 ****
      }
  
-     // add FAQ text to WYSIWYG editor in opener window
-     if ( window.opener.FCKeditorAPI.GetInstance('RichText') ) {
-         window.opener.FCKeditorAPI.GetInstance('RichText').InsertHtml(document.spelling.Body.value);
-     }
- 
      /* copy subject */
      if (parent.opener.document.compose.Subject.value == '') {
--- 224,227 ----
***************
*** 237,240 ****
--- 232,242 ----
      }
  
+     // add FAQ text to WYSIWYG editor in opener window
+     if ( window.opener.FCKeditorAPI && window.opener.FCKeditorAPI.GetInstance('RichText') ) {
+         window.opener.FCKeditorAPI.GetInstance('RichText').InsertHtml(document.spelling.Body.value);
+         this.close();
+         return;
+     }
+ 
      /* create short alias */
      var input = parent.opener.document.compose.Body;


More information about the cvs-log mailing list