Untangle the callbacks; Add linkable diff tabs.
[redakcja.git] / src / redakcja / static / js / wiki / dialog_pubmark.js
index 0249384..6d20493 100644 (file)
@@ -9,8 +9,9 @@
             if (!options.revision  && options.revision != 0)
                 throw "PubmarkDialog needs a revision number.";
 
+            let ctx = $.wiki.exitContext();
             super(element);
-            this.ctx = $.wiki.exitContext();
+            this.ctx = ctx;
             this.clearForm();
 
             /* fill out hidden fields */