X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d566b4741eb66bf09b5c7d213aa8541886e100a..2dd4071b8858c9727ee3e2c09b73b1eadef6e31e:/src/redakcja/static/js/wiki/dialog_revert.js?ds=inline diff --git a/src/redakcja/static/js/wiki/dialog_revert.js b/src/redakcja/static/js/wiki/dialog_revert.js index 0771088f..2af642e7 100644 --- a/src/redakcja/static/js/wiki/dialog_revert.js +++ b/src/redakcja/static/js/wiki/dialog_revert.js @@ -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 */