r.opts might not exist here.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 15 Mar 2010 19:46:28 +0000 (13:46 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 15 Mar 2010 21:40:36 +0000 (15:40 -0600)
imp/js/fullmessage-dimp.js

index d919fc4..d9316cc 100644 (file)
@@ -49,6 +49,9 @@ var DimpFullmessage = {
             r = result.response,
             id = (r.identity === null) ? $F('identity') : r.identity;
 
+        if (!r.opts) {
+            r.opts = {};
+        }
         r.opts.noupdate = true;
         r.opts.show_editor = (r.format == 'html');