aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-04-13 18:28:11 +0200
committertommy tomson <thomas.bierey@gmx.de>2012-04-13 18:28:11 +0200
commit615cd53e51a2ae121846771a9a1ef2ce22550be3 (patch)
tree7b18bdc458d25145ab6a92cb34f417ce601a8352 /view/theme/diabook/theme.php
parent11ba88b6d21a40c302d21646dfa9366bb393931d (diff)
downloadvolse-hubzilla-615cd53e51a2ae121846771a9a1ef2ce22550be3.tar.gz
volse-hubzilla-615cd53e51a2ae121846771a9a1ef2ce22550be3.tar.bz2
volse-hubzilla-615cd53e51a2ae121846771a9a1ef2ce22550be3.zip
diabook-themes: small fixes
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index 612650e90..a341d01c6 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -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) {