X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d566b4741eb66bf09b5c7d213aa8541886e100a..454635a6a1b93154e38eb761ac1e7e403f165a81:/src/redakcja/static/js/wiki/view_summary.js?ds=sidebyside 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;