egroupware_official/infolog/js/index.js
Nathan Gray acf078a1c0 - Abstract multiple actions code to remove multiple if / switches
- Add multiple entry action to change entry delegation
2010-12-08 19:01:13 +00:00

31 lines
679 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('['));
var popup = document.getElementById(prefix + '[' + selbox.value + '_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';
}
}