aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 0fcd1e42f..25f2736c7 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -30,13 +30,14 @@ tinyMCE.init({
//Character count
ed.onKeyUp.add(function(ed, e) {
var txt = tinyMCE.activeEditor.getContent();
- textlen = txt.length;
+ var textlen = txt.length;
if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) {
$('#profile-jot-desc').html(ispublic);
}
else {
$('#profile-jot-desc').html(' ');
}
+
if(textlen <= 140) {
$('#character-counter').removeClass('red');
$('#character-counter').removeClass('orange');