]> git.mxchange.org Git - friendica.git/blob - include/main.js
mongo commit
[friendica.git] / include / main.js
1
2   function openClose(theID) {
3     if(document.getElementById(theID).style.display == "block") { 
4       document.getElementById(theID).style.display = "none" 
5     }
6     else { 
7       document.getElementById(theID).style.display = "block" 
8     } 
9   }
10
11   function openMenu(theID) {
12       document.getElementById(theID).style.display = "block" 
13   }
14
15   function closeMenu(theID) {
16       document.getElementById(theID).style.display = "none" 
17   }
18
19         function commentOpen(obj,id) {
20                 if(obj.value == 'Comment') {
21                         obj.value = '';
22                         obj.className = "comment-edit-text-full";
23                         openMenu("comment-edit-submit-wrapper-" + id);
24                 }
25         }
26         function commentClose(obj,id) {
27                 if(obj.value == '') {
28                         obj.value = 'Comment';
29                         obj.className="comment-edit-text-empty";
30                         closeMenu("comment-edit-submit-wrapper-" + id);
31                 }
32         }
33