mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
acf078a1c0
- Add multiple entry action to change entry delegation
31 lines
679 B
JavaScript
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';
|
|
}
|
|
}
|