mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
81ea3b639c
- fixes not working actions in InfoLog list in Addressbook view - fixed not working adding/removing of responsible users
32 lines
798 B
JavaScript
32 lines
798 B
JavaScript
/**
|
|
* EGroupware infolog javascript code used on index page
|
|
*
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
* @package infolog
|
|
* @link http://www.egroupware.org
|
|
* @version $Id$
|
|
*/
|
|
|
|
/**
|
|
* Confirm delete
|
|
* If entry has children, asks if you want to delete children too
|
|
*
|
|
* @param _action
|
|
* @param _senders
|
|
*/
|
|
function confirm_delete(_action, _senders)
|
|
{
|
|
var children = false;
|
|
var child_button = document.getElementById(egw_actionManager.etemplate_var_prefix+'[delete_sub]');
|
|
if(child_button) {
|
|
for(var i = 0; i < _senders.length; i++) {
|
|
if ($(_senders[i].iface.node).hasClass('rowHasSubs')) {
|
|
children = true;
|
|
break;
|
|
}
|
|
}
|
|
child_button.style.display = children ? 'block' : 'none';
|
|
}
|
|
nm_open_popup(_action, _senders);
|
|
}
|