diff options
author | marijus <mario@mariovavti.com> | 2014-05-24 19:16:11 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-05-24 19:16:11 +0200 |
commit | 2bdecdce17057e4464f54918ad17d48071006161 (patch) | |
tree | 7120287e1937ce45fd788ca003732e10974da1ce | |
parent | 5b0db721f8ef7bd347db47a2200783de9953808a (diff) | |
download | volse-hubzilla-2bdecdce17057e4464f54918ad17d48071006161.tar.gz volse-hubzilla-2bdecdce17057e4464f54918ad17d48071006161.tar.bz2 volse-hubzilla-2bdecdce17057e4464f54918ad17d48071006161.zip |
for some reason this is also needed to make it work reliable in webkit browsers
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 10 | ||||
-rwxr-xr-x | view/tpl/comment_item.tpl | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index ec848dd3b..58acc1b95 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -1,3 +1,13 @@ +function commentOpenRedbasic(obj,id) { + $(document).click(function() { + if(obj.value == aStr['comment']) { + obj.value = ''; + $("#comment-edit-text-" + id).addClass("comment-edit-text-full").removeClass("comment-edit-text-empty"); + $("#comment-tools-" + id).show(); + } + }); +} + function commentCloseRedbasic(obj,id) { $(document).click(function() { if(obj.value == '') { diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl index 2689e17ef..0b89bb16a 100755 --- a/view/tpl/comment_item.tpl +++ b/view/tpl/comment_item.tpl @@ -10,7 +10,7 @@ <input type="hidden" name="return" value="{{$return_path}}" /> <input type="hidden" name="jsreload" value="{{$jsreload}}" /> <input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" /> - <textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,{{$id}});" onBlur="commentCloseRedbasic(this,{{$id}});" >{{$comment}}</textarea> + <textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty" name="body" onFocus="commentOpenRedbasic(this,{{$id}});" onBlur="commentCloseRedbasic(this,{{$id}});" >{{$comment}}</textarea> {{if $qcomment}} <select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});" > <option value=""></option> |