X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fslackr%2Ftheme.php;h=65a92c1845c3b92d738b41afa3bef4af1fb6a21a;hb=40f2ec189e9e23377791d3d4f63e1dce0d807f91;hp=99e061a2fc7108e320a73887fece46ffc49f7d54;hpb=214ec91a3f2c5fec6cced93f669b3a9725f0e40a;p=friendica.git diff --git a/view/theme/slackr/theme.php b/view/theme/slackr/theme.php index 99e061a2fc..65a92c1845 100644 --- a/view/theme/slackr/theme.php +++ b/view/theme/slackr/theme.php @@ -37,14 +37,32 @@ function insertFormatting(comment,BBcode,id) { return true; } -function cmtBbOpen(id) { - $(".comment-edit-bb-" + id).show(); +function cmtBbOpen(comment, id) { + if($(comment).hasClass('comment-edit-text-full')) { + $(".comment-edit-bb-" + id).show(); + return true; + } + return false; +} +function cmtBbClose(comment, id) { +// if($(comment).hasClass('comment-edit-text-empty')) { +// $(".comment-edit-bb-" + id).hide(); +// return true; +// } + return false; } -function cmtBbClose(id) { - $(".comment-edit-bb-" + id).hide(); + + +function hidecal() { + if(editor) return; + $('.fc').hide(); } + $(document).ready(function() { + $("#profile-jot-text").focus(hidecal); + $("#profile-jot-text").click(hidecal); + $('html').click(function() { $("#nav-notifications-menu" ).hide(); }); $('.group-edit-icon').hover(