Javascript refactoring. History view now displays tags
[redakcja.git] / platforma / static / js / wiki / summary_view.js
diff --git a/platforma/static/js/wiki/summary_view.js b/platforma/static/js/wiki/summary_view.js
new file mode 100644 (file)
index 0000000..bed8155
--- /dev/null
@@ -0,0 +1,25 @@
+(function($){
+       
+       function SummaryPerspective(doc, callback) {
+               this.perspective_id = 'SummaryPerspective';
+               this.doc = doc;
+               
+               callback.call(this);
+    };
+    
+    SummaryPerspective.prototype = new $.wiki.Perspective();
+    
+    SummaryPerspective.prototype.freezeState = function(){
+        // must 
+    };
+       
+       SummaryPerspective.prototype.onEnter = function(success, failure){
+               $.wiki.Perspective.prototype.onEnter.call(this);
+               
+               console.log("Entered summery view");
+       };
+       
+       $.wiki.SummaryPerspective = SummaryPerspective;
+       
+})(jQuery);
+