From 9ab6055b249b78c6b43be71e714e11118592dbcc Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 19 May 2011 20:41:40 -0700 Subject: [PATCH] textlen defined outside function --- view/jot-header.tpl | 2 +- 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 25f2736c7f..3057618b2f 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 00a4371c47..068c5cf43f 100644 --- a/view/theme/dispy/jot-header.tpl +++ b/view/theme/dispy/jot-header.tpl @@ -3,6 +3,7 @@