diff --git a/include/client/open.inc.php b/include/client/open.inc.php
index d0f4c24d55bb14a8535221d6ac7fae75ccf79a85..4011d14038391c6fad5e4d291a9f1818de36f736 100644
--- a/include/client/open.inc.php
+++ b/include/client/open.inc.php
@@ -122,7 +122,7 @@ if ($info['topicId'] && ($topic=Topic::lookup($info['topicId']))) {
             $('.richtext').each(function() {
                 var redactor = $(this).data('redactor');
                 if (redactor && redactor.opts.draftDelete)
-                    redactor.deleteDraft();
+                    redactor.draft.deleteDraft();
             });
             window.location.href='index.php';">
   </p>
diff --git a/include/staff/ticket-open.inc.php b/include/staff/ticket-open.inc.php
index 31acfea10ec720f464feec194f6ae8c05e4978c5..79b66318d038c87470b7d0defc90f6cd58517e2d 100644
--- a/include/staff/ticket-open.inc.php
+++ b/include/staff/ticket-open.inc.php
@@ -466,13 +466,9 @@ print $response_form->getField('attachments')->render();
     <input type="submit" name="submit" value="<?php echo _P('action-button', 'Open');?>">
     <input type="reset"  name="reset"  value="<?php echo __('Reset');?>">
     <input type="button" name="cancel" value="<?php echo __('Cancel');?>" onclick="javascript:
-        $('.richtext').each(function() {
-            var redactor = $(this).data('redactor');
-            if (redactor && redactor.opts.draftDelete)
-                redactor.deleteDraft();
-        });
-        window.location.href='tickets.php';
-    ">
+        $(this.form).find('textarea.richtext')
+          .redactor('draft.deleteDraft');
+        window.location.href='tickets.php'; " />
 </p>
 </form>
 <script type="text/javascript">