3 function SummaryPerspective(options) {
4 $.wiki.Perspective.call(this, options);
7 SummaryPerspective.prototype = new $.wiki.Perspective();
9 SummaryPerspective.prototype.showCharCount = function() {
12 cc = this.doc.getLength();
13 $('#charcount_untagged').hide();
16 $('#charcount_untagged').show();
17 cc = this.doc.text.replace(/\s{2,}/g, ' ').length;
19 $('#charcount').html(cc);
20 $('#charcount_pages').html((Math.round(cc/18)/100).toLocaleString());
23 SummaryPerspective.prototype.freezeState = function(){
27 SummaryPerspective.prototype.onEnter = function(success, failure){
28 $.wiki.Perspective.prototype.onEnter.call(this);
32 console.log("Entered summery view");
35 $.wiki.SummaryPerspective = SummaryPerspective;