3eafd1356b31f3243dbb6ec2c69f55400e19ecac
[redakcja.git] / platforma / static / js / wiki / diff_view.js
1 (function($){
2         
3         function DiffPerspective(options) {
4                 var old_callback = options.callback || function() {};        
5         options.callback = function(){
6                         old_callback.call(this);
7                 };              
8                 
9                 $.wiki.Perspective.call(this, options);
10     };
11     
12     DiffPerspective.prototype = new $.wiki.Perspective();
13     
14     DiffPerspective.prototype.freezeState = function(){
15         // must 
16     };
17         
18         DiffPerspective.prototype.onEnter = function(success, failure){
19                 $.wiki.Perspective.prototype.onEnter.call(this);
20                 
21                 console.log("Entered diff view");
22         };
23         
24         $.wiki.DiffPerspective = DiffPerspective;
25         
26 })(jQuery);
27