]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/slackr/theme.php
Merge remote branch 'friendica/master' into blog-like
[friendica.git] / view / theme / slackr / theme.php
index 516132f5c7fdb74e10d97e792fa4e84cddbc77fa..65a92c1845c3b92d738b41afa3bef4af1fb6a21a 100644 (file)
@@ -37,14 +37,31 @@ 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(id) {
-       $(".comment-edit-bb-" + id).hide();
+function cmtBbClose(comment, id) {
+//     if($(comment).hasClass('comment-edit-text-empty')) {
+//             $(".comment-edit-bb-" + id).hide();
+//             return true;
+//     }
+       return false;
 }
+
+
+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(); });