X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=bf5a4111fd396d46937c77ab27386c580cfac28e;hb=c5845be74edd2e48d743772c3dd31e6ad5c2a25e;hp=2498852f979966ac454b62d5142ea4afe1fc5bf6;hpb=f2e648d62fe7cafb9a55c7505687ea4d1c294778;p=friendica.git diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index 2498852f97..bf5a4111fd 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -1,5 +1,6 @@ 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() {