kopia lustrzana https://github.com/friendica/friendica
textlen defined outside function
rodzic
20807ab8b4
commit
9ab6055b24
|
@ -30,7 +30,7 @@ tinyMCE.init({
|
||||||
//Character count
|
//Character count
|
||||||
ed.onKeyUp.add(function(ed, e) {
|
ed.onKeyUp.add(function(ed, e) {
|
||||||
var txt = tinyMCE.activeEditor.getContent();
|
var txt = tinyMCE.activeEditor.getContent();
|
||||||
var textlen = txt.length;
|
textlen = txt.length;
|
||||||
if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) {
|
if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) {
|
||||||
$('#profile-jot-desc').html(ispublic);
|
$('#profile-jot-desc').html(ispublic);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
|
||||||
var editor;
|
var editor;
|
||||||
|
var textlen;
|
||||||
|
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
|
@ -31,7 +32,7 @@ tinyMCE.init({
|
||||||
//Character count
|
//Character count
|
||||||
ed.onKeyUp.add(function(ed, e) {
|
ed.onKeyUp.add(function(ed, e) {
|
||||||
var txt = tinyMCE.activeEditor.getContent();
|
var txt = tinyMCE.activeEditor.getContent();
|
||||||
var textlen = txt.length;
|
textlen = txt.length;
|
||||||
if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) {
|
if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) {
|
||||||
$('#profile-jot-desc').html(ispublic);
|
$('#profile-jot-desc').html(ispublic);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue