]> git.mxchange.org Git - friendica.git/blobdiff - view/head.tpl
Dispy - selecting any network and then switching back to "all networks"
[friendica.git] / view / head.tpl
index 8a75a4b8e0bf1ecb0900b8b1895f37c02f2a337d..42bd92f4ce497d42d271c9cba19cf4f709be211b 100644 (file)
@@ -39,7 +39,9 @@
                        $("#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 == '') {
@@ -48,7 +50,9 @@
                        $("#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>