X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fjot-header.tpl;h=a67f9c3f0c35ef0bdea97a1f6061c5c3cf4b3210;hb=78a8ed6fe77318387cae300f8a3a415477d241b5;hp=aa00c5d98900624b46775628d8a166699ab4bd6a;hpb=24abdaf64f7af5bc0cd3c92501fb1c18be6cdc16;p=friendica.git
diff --git a/view/templates/jot-header.tpl b/view/templates/jot-header.tpl
index aa00c5d989..a67f9c3f0c 100644
--- a/view/templates/jot-header.tpl
+++ b/view/templates/jot-header.tpl
@@ -8,7 +8,7 @@ var textlen = 0;
function initEditor(callback) {
if (editor == false) {
var colorbox_options = {
- {{if $APP->is_mobile}}
+ {{if $is_mobile}}
'width' : '100%',
'height' : '100%',
{{/if}}
@@ -24,6 +24,11 @@ function initEditor(callback) {
$("a#jot-perms-icon").colorbox(colorbox_options);
$(".jothidden").show();
+ $("#profile-jot-text").keyup(function(){
+ var textlen = $(this).val().length;
+ $('#character-counter').text(textlen);
+ });
+
editor = true;
}
if (typeof callback != "undefined") {
@@ -40,7 +45,7 @@ function enableOnUser(){
}
-
+