X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=view%2Fhead.tpl;h=42bd92f4ce497d42d271c9cba19cf4f709be211b;hb=d817117f6e43ad2ce6957798681f6e4133433f52;hp=7b15412427e8973210f401b3d84446861a5055cf;hpb=2e2bb5e8b0d2ab4a732cafd2ada30a76c4883177;p=friendica.git
diff --git a/view/head.tpl b/view/head.tpl
index 7b15412427..42bd92f4ce 100644
--- a/view/head.tpl
+++ b/view/head.tpl
@@ -6,7 +6,6 @@
-
var updateInterval = $update_interval;
+ var localUser = {{ if $local_user }}$local_user{{ else }}false{{ endif }};
function confirmDelete() { return confirm("$delitem"); }
function commentOpen(obj,id) {
@@ -37,16 +37,22 @@
obj.value = '';
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
+ $("#mod-cmnt-wrap-" + id).show();
openMenu("comment-edit-submit-wrapper-" + id);
+ return true;
}
+ return false;
}
function commentClose(obj,id) {
if(obj.value == '') {
obj.value = '$comment';
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
$("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
+ $("#mod-cmnt-wrap-" + id).hide();
closeMenu("comment-edit-submit-wrapper-" + id);
+ return true;
}
+ return false;
}
@@ -94,6 +100,15 @@
}
}
+ function showHideCommentBox(id) {
+ if( $('#comment-edit-form-' + id).is(':visible')) {
+ $('#comment-edit-form-' + id).hide();
+ }
+ else {
+ $('#comment-edit-form-' + id).show();
+ }
+ }
+