]> git.mxchange.org Git - friendica.git/commitdiff
head.tpl: commentOpen() and commentClose() return true/false
authorFabrixxm <fabrix.xm@gmail.com>
Fri, 10 Aug 2012 08:25:08 +0000 (04:25 -0400)
committerFabrixxm <fabrix.xm@gmail.com>
Fri, 10 Aug 2012 08:25:08 +0000 (04:25 -0400)
usefull to concatenate other actions: "commentClose(this, $id) && cmtBbClose($id)"

view/head.tpl

index e5495b329f159d24d1c60692844208651488a843..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;
        }