From 4c7173d2e0f56949ee178c159aaaae3479febd55 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Wed, 9 Oct 2013 13:18:55 +0000
Subject: [PATCH] Fix canned response injection

---
 scp/js/scp.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scp/js/scp.js b/scp/js/scp.js
index 1269f1d81..d7db69d13 100644
--- a/scp/js/scp.js
+++ b/scp/js/scp.js
@@ -195,18 +195,18 @@ $(document).ready(function(){
                     if(canned.response) {
                         if($('#append',fObj).is(':checked') &&  $('#response',fObj).val()) {
                             if (redactor)
-                                redactor('insertHtml', canned.response);
+                                redactor.insertHtml(canned.response);
                             else
                                 box.val(canned.response);
                         }
                         else {
                             if (redactor)
-                                redactor('set', canned.response);
+                                redactor.set(canned.response);
                             else
                                 box.val(canned.response);
                         }
                         if (redactor)
-                            redactor('observeStart');
+                            redactor.observeStart();
                     }
                     //Canned attachments.
                     if(canned.files && $('.canned_attachments',fObj).length) {
-- 
GitLab