X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5bbc488088e1d46bd14ebf9a96852f8ee8b231a2..5913c54d19b8f6775633176032161d49f9b2f1aa:/redakcja/static/js/wiki/view_summary.js?ds=inline diff --git a/redakcja/static/js/wiki/view_summary.js b/redakcja/static/js/wiki/view_summary.js deleted file mode 100644 index de6fcf15..00000000 --- a/redakcja/static/js/wiki/view_summary.js +++ /dev/null @@ -1,38 +0,0 @@ -(function($){ - - function SummaryPerspective(options) { - $.wiki.Perspective.call(this, options); - }; - - SummaryPerspective.prototype = new $.wiki.Perspective(); - - SummaryPerspective.prototype.showCharCount = function() { - var cc; - try { - cc = this.doc.getLength(); - $('#charcount_untagged').hide(); - } - catch (e) { - $('#charcount_untagged').show(); - cc = this.doc.text.replace(/\s{2,}/g, ' ').length; - } - $('#charcount').html(cc); - $('#charcount_pages').html((Math.round(cc/18)/100).toLocaleString()); - } - - SummaryPerspective.prototype.freezeState = function(){ - // must - }; - - SummaryPerspective.prototype.onEnter = function(success, failure){ - $.wiki.Perspective.prototype.onEnter.call(this); - - this.showCharCount(); - - console.log("Entered summery view"); - }; - - $.wiki.SummaryPerspective = SummaryPerspective; - -})(jQuery); -