forked from extern/egroupware
Get spreadsheet box working again
This commit is contained in:
parent
476a0c0a6d
commit
e7e424e1fc
@ -139,13 +139,26 @@ class importexport_admin_prefs_sidebox_hooks
|
|||||||
$prefix = 'document_';
|
$prefix = 'document_';
|
||||||
|
|
||||||
$options = 'style="max-width:175px;" onchange="var window = egw_appWindow(\''.$appname.'\');
|
$options = 'style="max-width:175px;" onchange="var window = egw_appWindow(\''.$appname.'\');
|
||||||
if(window.egwAction) {
|
if(window.egw_getActionManager) {
|
||||||
var action = new window.egwAction(null,\''.$prefix.'\'+this.value);
|
var actionMgrs = window.egw_getActionManager(\''.$appname.'\').getActionsByAttr(\'type\', \'actionManager\');
|
||||||
if(window.egw_objectManager.selectedChildren.length == 0) {
|
var actionMgr = null;
|
||||||
// Be nice and select all, if they forgot to select any
|
for(var i = 0; i < actionMgrs.length; i++) {
|
||||||
window.egw_actionManager.getActionById(\'select_all\').set_checked(true);
|
if(typeof actionMgrs[i].etemplate_var_prefix != \'undefined\') {
|
||||||
|
actionMgr = actionMgrs[i];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var objectMgr = window.egw_getObjectManager(actionMgr.id);
|
||||||
|
if(actionMgr && objectMgr && window.egwAction) {
|
||||||
|
var action = new window.egwAction(actionMgr,\''.$prefix.'\'+this.value);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
window.nm_action(action, objectMgr.selectedChildren);
|
||||||
}
|
}
|
||||||
window.nm_action(action, window.egw_objectManager.selectedChildren);
|
|
||||||
} else {';
|
} else {';
|
||||||
if($appname == 'calendar')
|
if($appname == 'calendar')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user