3 function SummaryPerspective(options) {
4 var old_callback = options.callback || function() {};
6 options.callback = function() {
9 old_callback.call(this);
12 $.wiki.Perspective.call(this, options);
15 SummaryPerspective.prototype = new $.wiki.Perspective();
17 SummaryPerspective.prototype.showCharCount = function() {
20 cc = this.doc.getLength();
21 $('#charcount_untagged').hide();
24 $('#charcount_untagged').show();
25 cc = this.doc.text.replace(/\s{2,}/g, ' ').length;
27 $('#charcount').html(cc);
28 $('#charcount_pages').html((Math.round(cc/18)/100).toLocaleString());
31 SummaryPerspective.prototype.freezeState = function(){
35 SummaryPerspective.prototype.onEnter = function(success, failure){
36 $.wiki.Perspective.prototype.onEnter.call(this);
40 console.log("Entered summery view");
43 $.wiki.SummaryPerspective = SummaryPerspective;