diff options
author | RedMatrix <info@friendica.com> | 2014-05-25 07:46:42 +1000 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-05-25 07:46:42 +1000 |
commit | e6015e71697bb700aab5e5165f9d66a8cbfcab7a (patch) | |
tree | 7120287e1937ce45fd788ca003732e10974da1ce /view/theme/redbasic/js/redbasic.js | |
parent | 1879a8b747fb7d170d11700310a9384084b7caee (diff) | |
parent | 2bdecdce17057e4464f54918ad17d48071006161 (diff) | |
download | volse-hubzilla-e6015e71697bb700aab5e5165f9d66a8cbfcab7a.tar.gz volse-hubzilla-e6015e71697bb700aab5e5165f9d66a8cbfcab7a.tar.bz2 volse-hubzilla-e6015e71697bb700aab5e5165f9d66a8cbfcab7a.zip |
Merge pull request #473 from git-marijus/master
possible fix for empty commentbox collapsing on tool-button click
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index d981b0c11..58acc1b95 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -1,3 +1,23 @@ +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 == '') { + obj.value = aStr['comment']; + $("#comment-edit-text-" + id).removeClass("comment-edit-text-full").addClass("comment-edit-text-empty"); + $("#comment-tools-" + id).hide(); + } + }); +} + $(document).ready(function() { $('#expand-aside').click(function() { |