]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/cleanzero/theme.php
Merge https://github.com/annando/friendica into annando
[friendica.git] / view / theme / cleanzero / theme.php
index c993619973ec47b385a8208662f0741fbd290a4c..c7c0b2d640bd47f778750e12c72ecfdf110bac51 100644 (file)
@@ -8,6 +8,8 @@
 $a->theme_info = array(
   'extends' => 'duepuntozero',
 );
+$a->theme['template_engine'] = 'smarty3';
+
 function cleanzero_init(&$a) {
 $a->page['htmlhead'] .= <<< EOT
 <script>
@@ -42,13 +44,22 @@ 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() {
 
 $('.group-edit-icon').hover(