aboutsummaryrefslogtreecommitdiffstats
path: root/include/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'include/main.js')
-rw-r--r--include/main.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/main.js b/include/main.js
index 8d364ebce..f1c6cee12 100644
--- a/include/main.js
+++ b/include/main.js
@@ -16,5 +16,18 @@
document.getElementById(theID).style.display = "none"
}
-
+ function commentOpen(obj,id) {
+ if(obj.value == 'Comment') {
+ obj.value = '';
+ obj.className = "comment-edit-text-full";
+ openMenu("comment-edit-submit-wrapper-" + id);
+ }
+ }
+ function commentClose(obj,id) {
+ if(obj.value == '') {
+ obj.value = 'Comment';
+ obj.className="comment-edit-text-empty";
+ closeMenu("comment-edit-submit-wrapper-" + id);
+ }
+ }