forked from extern/egroupware
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);
|
var objectMgr = window.egw_getObjectManager(actionMgr.id);
|
||||||
if(actionMgr && objectMgr && window.egwAction) {
|
if(actionMgr && objectMgr && window.egwAction) {
|
||||||
var action = new window.egwAction(actionMgr,\''.$prefix.'\'+this.value);
|
var action = new window.egwAction(actionMgr,\''.$prefix.'\'+this.value);
|
||||||
|
var toggle_select = false;
|
||||||
if(objectMgr.selectedChildren.length == 0) {
|
if(objectMgr.selectedChildren.length == 0) {
|
||||||
// Be nice and select all, if they forgot to select any
|
// Be nice and select all, if they forgot to select any
|
||||||
if(actionMgr.getActionById(\'select_all\')) {
|
if(actionMgr.getActionById(\'select_all\')) {
|
||||||
actionMgr.getActionById(\'select_all\').set_checked(true);
|
actionMgr.getActionById(\'select_all\').set_checked(true);
|
||||||
|
toggle_select = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.nm_action(action, objectMgr.selectedChildren);
|
window.nm_action(action, objectMgr.selectedChildren);
|
||||||
|
if(toggle_select) {
|
||||||
|
// Turn it back off again
|
||||||
|
actionMgr.getActionById(\'select_all\').set_checked(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {';
|
} else {';
|
||||||
if($appname == 'calendar')
|
if($appname == 'calendar')
|
||||||
|
Loading…
Reference in New Issue
Block a user