More javascript refactoring.
[redakcja.git] / platforma / static / js / wiki / diff_view.js
diff --git a/platforma/static/js/wiki/diff_view.js b/platforma/static/js/wiki/diff_view.js
new file mode 100644 (file)
index 0000000..3eafd13
--- /dev/null
@@ -0,0 +1,27 @@
+(function($){
+       
+       function DiffPerspective(options) {
+               var old_callback = options.callback || function() {};        
+        options.callback = function(){
+                       old_callback.call(this);
+               };              
+               
+               $.wiki.Perspective.call(this, options);
+    };
+    
+    DiffPerspective.prototype = new $.wiki.Perspective();
+    
+    DiffPerspective.prototype.freezeState = function(){
+        // must 
+    };
+       
+       DiffPerspective.prototype.onEnter = function(success, failure){
+               $.wiki.Perspective.prototype.onEnter.call(this);
+               
+               console.log("Entered diff view");
+       };
+       
+       $.wiki.DiffPerspective = DiffPerspective;
+       
+})(jQuery);
+