X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fjot-header.tpl;h=808d51126224570f423b4f6c71a9b900182f8683;hb=f2d8650d36d228bb94fb84ef2a2e64c1dfc9b3a7;hp=f169b09212a8c5df75c55e5bbe17e6c86790b952;hpb=4375edd63e44b71913bd45bf25a4a554582b581e;p=friendica.git
diff --git a/view/templates/jot-header.tpl b/view/templates/jot-header.tpl
index f169b09212..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}}
@@ -19,11 +19,16 @@ function initEditor(callback) {
$("#profile-jot-text-loading").show();
$("#profile-jot-text-loading").hide();
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
- $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
+ $("#profile-jot-text").editor_autocomplete(baseurl + '/search/acl');
$("#profile-jot-text").bbco_autocomplete('bbcode');
$("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(){
}
-
+