]> git.mxchange.org Git - friendica.git/commitdiff
update head.tpl for dispy
authorZach Prezkuta <fermion@gmx.com>
Wed, 25 Jul 2012 00:29:23 +0000 (18:29 -0600)
committerZach Prezkuta <fermion@gmx.com>
Wed, 25 Jul 2012 00:29:23 +0000 (18:29 -0600)
view/theme/dispy/head.tpl

index d42b19aef780ac255c8ca1094e41f6030daddc18..a34df96bee1b931a11686f25dcd662644fd8d35f 100644 (file)
@@ -25,6 +25,7 @@
 <!-- in dispy-dark -->
 <script>
        var updateInterval = $update_interval;
+       var localUser = {{ if $local_user }}$local_user{{ else }}false{{ endif }};
 
        function confirmDelete() { return confirm("$delitem"); }
        function commentOpen(obj,id) {
@@ -32,6 +33,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);
                }
        }
@@ -40,6 +42,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);
                }
        }
@@ -74,6 +77,7 @@
                ins = ins.replace('&amp;','&');
                ins = ins.replace('&quot;','"');
                $("#comment-edit-text-" + id).val(tmpStr + ins);
+               $(obj).val('');
        }
 
        function showHideComments(id) {