egroupware_official/infolog/js/index.js
Ralf Becker 81ea3b639c - using now nm_(open|hide|submit)_popup and nm_action => 'open_popup'
- fixes not working actions in InfoLog list in Addressbook view
- fixed not working adding/removing of responsible users
2011-05-07 08:51:35 +00:00

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);
}