fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More author data in catalogue.
[redakcja.git]
/
src
/
redakcja
/
static
/
js
/
wiki
/
view_summary.js
diff --git
a/src/redakcja/static/js/wiki/view_summary.js
b/src/redakcja/static/js/wiki/view_summary.js
index
099a0e8
..
1bc3fb5
100644
(file)
--- a/
src/redakcja/static/js/wiki/view_summary.js
+++ b/
src/redakcja/static/js/wiki/view_summary.js
@@
-32,15
+32,23
@@
SummaryPerspective.prototype.showCharCount = function() {
var cc;
try {
SummaryPerspective.prototype.showCharCount = function() {
var cc;
try {
+ $('#charcounts_text').show();
+ $('#charcounts_raw').hide();
+ cc = this.doc.getLength({noFootnotes: true, noThemes: true});
+ $('#charcount').html(cc);
+ $('#charcount_pages').html((Math.round(cc/18)/100).toLocaleString());
+
cc = this.doc.getLength();
cc = this.doc.getLength();
- $('#charcount_untagged').hide();
+ $('#charcount_full').html(cc);
+ $('#charcount_full_pages').html((Math.round(cc/18)/100).toLocaleString());
}
catch (e) {
}
catch (e) {
- $('#charcount_untagged').show();
+ $('#charcounts_text').hide();
+ $('#charcounts_raw').show();
cc = this.doc.text.replace(/\s{2,}/g, ' ').length;
cc = this.doc.text.replace(/\s{2,}/g, ' ').length;
+ $('#charcount_raw').html(cc);
+ $('#charcount_raw_pages').html((Math.round(cc/18)/100).toLocaleString());
}
}
- $('#charcount').html(cc);
- $('#charcount_pages').html((Math.round(cc/18)/100).toLocaleString());
}
SummaryPerspective.prototype.freezeState = function(){
}
SummaryPerspective.prototype.freezeState = function(){