]> git.mxchange.org Git - friendica.git/commitdiff
textlen defined outside function
authorFriendika <info@friendika.com>
Fri, 20 May 2011 03:41:40 +0000 (20:41 -0700)
committerFriendika <info@friendika.com>
Fri, 20 May 2011 03:41:40 +0000 (20:41 -0700)
view/jot-header.tpl
view/theme/dispy/jot-header.tpl

index 25f2736c7f788eb8cc3f66b520f967fabd376aef..3057618b2fab9811390bcca75cea001387f8d350 100644 (file)
@@ -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);
                        }
index 00a4371c472d5aeb91b0ffea0bf3190e17f49e10..068c5cf43fc7b889a80100647d113f081427d85d 100644 (file)
@@ -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);
                        }