Merge branch 'edumed' of https://github.com/fnp/redakcja into edumed
[redakcja.git] / redakcja / static / js / wiki / view_column_diff.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         $.wiki.switchToTab('#HistoryPerspective');
23                 $('#' + this.base_id).remove();
24                 $('#' + this.perspective_id).remove();
25         };
26
27         DiffPerspective.prototype.onEnter = function(success, failure){
28                 $.wiki.Perspective.prototype.onEnter.call(this);
29                 console.log("Entered diff view");
30         };
31
32         $.wiki.DiffPerspective = DiffPerspective;
33
34 })(jQuery);
35