X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fdarkzero%2Ftheme.php;h=ceafdf59569571a7cbf4354b3b34bffaf5cdc0d1;hb=0d5b8dfafde4d66c8cd6978ad83e639938aaf3bd;hp=e6b469bff00f08d2d5815f749c44046dd718d21b;hpb=50f10a4fd78043b4aaf82abd856730543928382b;p=friendica.git diff --git a/view/theme/darkzero/theme.php b/view/theme/darkzero/theme.php index e6b469bff0..ceafdf5956 100644 --- a/view/theme/darkzero/theme.php +++ b/view/theme/darkzero/theme.php @@ -11,6 +11,7 @@ $a->theme_info = array( 'extends' => 'duepuntozero', ); +set_template_engine($a, 'smarty3'); function darkzero_init(&$a) { $a->page['htmlhead'] .= <<< EOT @@ -45,11 +46,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() { @@ -96,4 +105,4 @@ $('.savedsearchterm').hover( EOT; -} \ No newline at end of file +}