]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/purplezero/theme.php
Merge pull request #1110 from annando/1409-issue-1094
[friendica.git] / view / theme / purplezero / theme.php
index 9b483db6253a8335ca56acd2adbc34cbaf6cd752..c78e5cccceaab9067024e89c4851c4ccf9cf00c8 100644 (file)
@@ -1,9 +1,11 @@
 <?php
+
+function purplezero_init(&$a) {
 $a->theme_info = array(
   'extends' => 'duepuntozero',
 );
+set_template_engine($a, 'smarty3');
 
-function purplezero_init(&$a) {
 $a->page['htmlhead'] .= <<< EOT
 <script>
 function insertFormatting(comment,BBcode,id) {
@@ -14,7 +16,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) {
@@ -85,4 +88,4 @@ $('.savedsearchterm').hover(
 
 </script>
 EOT;
-}
\ No newline at end of file
+}