Require PIL.
[redakcja.git] / platforma / static / js / wiki / diff_view.js
1 (function($){
2         
3         function DiffPerspective(options) {
4                 var old_callback = options.callback || function() {};
5                 var self = this;
6                         
7         options.callback = function(){
8                         self.base_id = options.base_id;                 
9                         old_callback.call(this);
10                 };              
11                 
12                 $.wiki.Perspective.call(this, options);
13     };
14     
15     DiffPerspective.prototype = new $.wiki.Perspective();
16     
17     DiffPerspective.prototype.freezeState = function(){
18         // must 
19     };
20         
21         DiffPerspective.prototype.destroy = function() {
22                 $('#' + this.base_id).remove();
23                 $('#' + this.perspective_id).remove();
24         };
25         
26         DiffPerspective.prototype.onEnter = function(success, failure){
27                 $.wiki.Perspective.prototype.onEnter.call(this);
28                 console.log("Entered diff view");
29         };
30         
31         $.wiki.DiffPerspective = DiffPerspective;
32         
33 })(jQuery);
34