Priviliged users can now add tags. Also, some minor cleanups in JS.
[redakcja.git] / platforma / static / js / wiki / view_summary.js
1 (function($){
2
3         function SummaryPerspective(options) {
4                 var old_callback = options.callback;
5         options.callback = function(){
6                         old_callback.call(this);
7                 };
8
9                 $.wiki.Perspective.call(this, options);
10     };
11
12     SummaryPerspective.prototype = new $.wiki.Perspective();
13
14     SummaryPerspective.prototype.freezeState = function(){
15         // must
16     };
17
18         SummaryPerspective.prototype.onEnter = function(success, failure){
19                 $.wiki.Perspective.prototype.onEnter.call(this);
20
21                 console.log("Entered summery view");
22         };
23
24         $.wiki.SummaryPerspective = SummaryPerspective;
25
26 })(jQuery);
27