diabook-themes: small fixes

This commit is contained in:
tommy tomson 2012-04-13 18:28:11 +02:00
commit 615cd53e51
28 changed files with 249 additions and 75 deletions

View file

@ -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) {