diff options
Diffstat (limited to 'view/theme')
-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() { |