]> git.mxchange.org Git - friendica.git/blobdiff - view/head.tpl
Merge branch 'master' of https://github.com/friendica/friendica into threaded_items
[friendica.git] / view / head.tpl
index 7b15412427e8973210f401b3d84446861a5055cf..42bd92f4ce497d42d271c9cba19cf4f709be211b 100644 (file)
@@ -6,7 +6,6 @@
 <link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
 
 <link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
-<meta name="viewport" content="width=800, initial-scale=1, maximum-scale=3" />
 
 <link rel="shortcut icon" href="$baseurl/images/friendica-32.png" />
 <link rel="search"
@@ -30,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) {
                        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;
        }
 
 
                }
        }
 
+       function showHideCommentBox(id) {
+               if( $('#comment-edit-form-' + id).is(':visible')) {
+                       $('#comment-edit-form-' + id).hide();
+               }
+               else {
+                       $('#comment-edit-form-' + id).show();
+               }
+       }
+
 
 </script>