mirror of
https://github.com/friendica/friendica
synced 2024-12-23 09:20:17 +00:00
textlen defined outside function
This commit is contained in:
parent
20807ab8b4
commit
9ab6055b24
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue