X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fjot-header.tpl;h=808d51126224570f423b4f6c71a9b900182f8683;hb=7f4d399fc8ca0abd4ab99f1ee9dfecd5fa175fde;hp=0d2ad6f6f69ea651fe187719e469c26ad4d1ecd4;hpb=f8c0f24e34e124ab782d5dcf3d2d658d70e19e5c;p=friendica.git
diff --git a/view/templates/jot-header.tpl b/view/templates/jot-header.tpl
index 0d2ad6f6f6..808d511262 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(){
}
-
+