mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
If automatically using 'select all', turn it back off again after merge
This commit is contained in:
parent
d32809bb90
commit
615ea171c2
@ -150,13 +150,19 @@ for(var i = 0; i < actionMgrs.length; i++) {
|
||||
var objectMgr = window.egw_getObjectManager(actionMgr.id);
|
||||
if(actionMgr && objectMgr && window.egwAction) {
|
||||
var action = new window.egwAction(actionMgr,\''.$prefix.'\'+this.value);
|
||||
var toggle_select = false;
|
||||
if(objectMgr.selectedChildren.length == 0) {
|
||||
// Be nice and select all, if they forgot to select any
|
||||
if(actionMgr.getActionById(\'select_all\')) {
|
||||
actionMgr.getActionById(\'select_all\').set_checked(true);
|
||||
toggle_select = true;
|
||||
}
|
||||
}
|
||||
window.nm_action(action, objectMgr.selectedChildren);
|
||||
if(toggle_select) {
|
||||
// Turn it back off again
|
||||
actionMgr.getActionById(\'select_all\').set_checked(false);
|
||||
}
|
||||
}
|
||||
} else {';
|
||||
if($appname == 'calendar')
|
||||
|
Loading…
Reference in New Issue
Block a user