fixes #4475: Split thema into separate fields.
[redakcja.git] / src / redakcja / static / js / wiki / view_summary.js
index 171e9b7..bb65530 100644 (file)
@@ -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() {
             }
         }
 
-        freezeState = function() {
-            // must
-        }
-
         onEnter(success, failure){
             super.onEnter();
 
             this.showCharCount();
-
-            console.log("Entered summery view");
         }
     }
     $.wiki.SummaryPerspective = SummaryPerspective;