]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/duepuntozero/theme.php
Merge remote-tracking branch 'upstream/master'
[friendica.git] / view / theme / duepuntozero / theme.php
index 2498852f979966ac454b62d5142ea4afe1fc5bf6..bf5a4111fd396d46937c77ab27386c580cfac28e 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 $a->theme_info = array();
+set_template_engine($a, 'smarty3');
 
 function duepuntozero_init(&$a) {
 $a->page['htmlhead'] .= <<< EOT
@@ -34,11 +35,19 @@ 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) {
-       $(".comment-edit-bb-" + id).hide();
+//     if($(comment).hasClass('comment-edit-text-empty')) {
+//             $(".comment-edit-bb-" + id).hide();
+//             return true;
+//     }
+       return false;
 }
 $(document).ready(function() {