X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d566b4741eb66bf09b5c7d213aa8541886e100a..573b9004c7bc2a6a2b29335155b4ff55d142c6b6:/src/redakcja/static/js/wiki/view_summary.js 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;