egroupware/infolog/js/index.js
Nathan Gray b2b292603d - Fix incorrect result counts when using whole query
- Add action to change completion
- Give warning if trying to change the status of a done entry.  Completion of 100% will change it right back.
- Fix ACL when linking - only link to entries with EDIT permission
- Hide group types if user has no access to them
2010-11-23 17:56:56 +00:00

46 lines
1010 B
JavaScript

/**
* Javascript used on the infolog index page
*/
/**
* Javascript handling for multiple entry actions
*/
function do_infolog_action(selbox) {
if(selbox.value == "") return;
var prefix = selbox.id.substring(0,selbox.id.indexOf('['));
switch(selbox.value) {
case "link":
var popup = document.getElementById(prefix+'[link_popup]');
if(popup) {
popup.style.display = 'block';
}
return;
case "cat":
var popup = document.getElementById(prefix+'[cat_popup]');
if(popup) {
popup.style.display = 'block';
}
return;
case "completion":
var popup = document.getElementById(prefix+'[completion_popup]');
if(popup) {
popup.style.display = 'block';
}
return;
}
selbox.form.submit();
selbox.value = "";
}
/**
* Hide popup and clear values
*/
function hide_popup(element, div_id) {
var prefix = element.id.substring(0,element.id.indexOf('['));
var popup = document.getElementById(prefix+'['+div_id+']');
if(popup) {
popup.style.display = 'none';
}
}