]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/diabook/theme.php
diabook-themes: small fixes
[friendica.git] / view / theme / diabook / theme.php
index 612650e900e1a844e3deedf2c5cf4d354d5b2714..a341d01c6c011dc13f66061fc4af91f17cecf89f 100755 (executable)
@@ -469,18 +469,19 @@ function restore_boxes(){
   }
 </script>';}
 
+
 $a->page['htmlhead'] .= ' 
 
-<script type="text/javascript">
-function insertFormatting(BBcode,id) {
+<script>
+function insertFormatting(comment,BBcode,id) {
        
                var tmpStr = $("#comment-edit-text-" + id).val();
-               if(tmpStr == "Kommentar") {
+               if(tmpStr == comment) {
                        tmpStr = "";
                        $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
                        $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
                        openMenu("comment-edit-submit-wrapper-" + id);
-                                                                                       }
+                                                               }
 
        textarea = document.getElementById("comment-edit-text-" +id);
        if (document.selection) {