diff options
author | Friendika <info@friendika.com> | 2011-05-19 20:41:40 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-19 20:41:40 -0700 |
commit | 9ab6055b249b78c6b43be71e714e11118592dbcc (patch) | |
tree | d1115cb101cf735ad6db64bf5943ccd0c758117f /view | |
parent | 20807ab8b4e0d1180b7fe74624a58b80b6cfc52a (diff) | |
download | volse-hubzilla-9ab6055b249b78c6b43be71e714e11118592dbcc.tar.gz volse-hubzilla-9ab6055b249b78c6b43be71e714e11118592dbcc.tar.bz2 volse-hubzilla-9ab6055b249b78c6b43be71e714e11118592dbcc.zip |
textlen defined outside function
Diffstat (limited to 'view')
-rw-r--r-- | view/jot-header.tpl | 2 | ||||
-rw-r--r-- | view/theme/dispy/jot-header.tpl | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 25f2736c7..3057618b2 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -30,7 +30,7 @@ tinyMCE.init({ //Character count ed.onKeyUp.add(function(ed, e) { var txt = tinyMCE.activeEditor.getContent(); - var textlen = txt.length; + textlen = txt.length; if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) { $('#profile-jot-desc').html(ispublic); } diff --git a/view/theme/dispy/jot-header.tpl b/view/theme/dispy/jot-header.tpl index 00a4371c4..068c5cf43 100644 --- a/view/theme/dispy/jot-header.tpl +++ b/view/theme/dispy/jot-header.tpl @@ -3,6 +3,7 @@ <script language="javascript" type="text/javascript"> var editor; +var textlen; tinyMCE.init({ theme : "advanced", @@ -31,7 +32,7 @@ tinyMCE.init({ //Character count ed.onKeyUp.add(function(ed, e) { var txt = tinyMCE.activeEditor.getContent(); - var textlen = txt.length; + textlen = txt.length; if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) { $('#profile-jot-desc').html(ispublic); } |