aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-05-24 19:16:11 +0200
committermarijus <mario@mariovavti.com>2014-05-24 19:16:11 +0200
commit2bdecdce17057e4464f54918ad17d48071006161 (patch)
tree7120287e1937ce45fd788ca003732e10974da1ce /view
parent5b0db721f8ef7bd347db47a2200783de9953808a (diff)
downloadvolse-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
Diffstat (limited to 'view')
-rw-r--r--view/theme/redbasic/js/redbasic.js10
-rwxr-xr-xview/tpl/comment_item.tpl2
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>