X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=bf5a4111fd396d46937c77ab27386c580cfac28e;hb=c5845be74edd2e48d743772c3dd31e6ad5c2a25e;hp=8c7e6c6072b02c568cea12afd63f3bb4c762a2c8;hpb=75828b4750dbed8d8c0515ab8bfa1b2276b7f65f;p=friendica.git diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index 8c7e6c6072..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 @@ -12,7 +13,8 @@ function insertFormatting(comment,BBcode,id) { $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); openMenu("comment-edit-submit-wrapper-" + id); - } + $("#comment-edit-text-" + id).val(tmpStr); + } textarea = document.getElementById("comment-edit-text-" +id); if (document.selection) { @@ -33,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(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; } $(document).ready(function() {