Untangle the callbacks; Add linkable diff tabs.
[redakcja.git] / src / redakcja / static / js / wiki / dialog_revert.js
index 0771088..2af642e 100644 (file)
@@ -6,8 +6,9 @@
 
     class RevertDialog extends $.wiki.cls.GenericDialog {
         constructor(element, options) {
+            let ctx = $.wiki.exitContext();
             super(element);
-            this.ctx = $.wiki.exitContext();
+            this.ctx = ctx;
             this.clearForm();
 
             /* fill out hidden fields */