X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d566b4741eb66bf09b5c7d213aa8541886e100a..d3dfd4b8285e3b5939f7865907cc0537e948b6b6:/src/redakcja/static/js/wiki/view_summary.js?ds=inline diff --git a/src/redakcja/static/js/wiki/view_summary.js b/src/redakcja/static/js/wiki/view_summary.js index 171e9b72..bb655303 100644 --- a/src/redakcja/static/js/wiki/view_summary.js +++ b/src/redakcja/static/js/wiki/view_summary.js @@ -2,20 +2,13 @@ class SummaryPerspective extends $.wiki.Perspective { constructor(options) { - var old_callback = options.callback || function() {}; - - options.callback = function() { - var self = this; - - // first time page is rendered - $('#summary-cover-refresh').click(function() { - self.refreshCover(); - }); - - old_callback.call(this); - } - super(options); + var self = this; + + // first time page is rendered + $('#summary-cover-refresh').click(function() { + self.refreshCover(); + }); } refreshCover() { @@ -50,16 +43,10 @@ } } - freezeState = function() { - // must - } - onEnter(success, failure){ super.onEnter(); this.showCharCount(); - - console.log("Entered summery view"); } } $.wiki.SummaryPerspective = SummaryPerspective;