]> git.mxchange.org Git - friendica.git/blobdiff - view/head.tpl
cleanup
[friendica.git] / view / head.tpl
old mode 100755 (executable)
new mode 100644 (file)
index cd6f5ca..8a75a4b
@@ -29,6 +29,7 @@
 <script>
 
        var updateInterval = $update_interval;
+       var localUser = {{ if $local_user }}$local_user{{ else }}false{{ endif }};
 
        function confirmDelete() { return confirm("$delitem"); }
        function commentOpen(obj,id) {
@@ -36,6 +37,7 @@
                        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);
                }
        }
@@ -44,6 +46,7 @@
                        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);
                }
        }
@@ -79,6 +82,7 @@
                ins = ins.replace('&amp;','&');
                ins = ins.replace('&quot;','"');
                $("#comment-edit-text-" + id).val(tmpStr + ins);
+               $(obj).val('');
        }
 
        function showHideComments(id) {