friendica/include/main.js

34 lines
813 B
JavaScript
Raw Normal View History

function openClose(theID) {
if(document.getElementById(theID).style.display == "block") {
document.getElementById(theID).style.display = "none"
}
else {
document.getElementById(theID).style.display = "block"
}
}
2010-07-12 07:49:06 +00:00
function openMenu(theID) {
document.getElementById(theID).style.display = "block"
}
2010-07-12 07:49:06 +00:00
function closeMenu(theID) {
document.getElementById(theID).style.display = "none"
}
2010-07-12 23:43:59 +00:00
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);
}
}
2010-07-12 07:49:06 +00:00