forked from extern/egroupware
use new getNode function on tree widget to get node and its attributes
This commit is contained in:
parent
ec989fc535
commit
95eb49aa85
@ -458,6 +458,7 @@ class mail_ui
|
|||||||
'edit_acl' => array(
|
'edit_acl' => array(
|
||||||
'caption' => 'Edit folder ACL ...',
|
'caption' => 'Edit folder ACL ...',
|
||||||
'icon' => 'blocks',
|
'icon' => 'blocks',
|
||||||
|
'enabled' => 'javaScript:app.mail.mail_CheckFolderNoSelect',
|
||||||
'onExecute' => 'javaScript:app.mail.edit_acl',
|
'onExecute' => 'javaScript:app.mail.edit_acl',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -863,13 +863,14 @@ app.classes.mail = AppJS.extend(
|
|||||||
// Abort if user selected an un-selectable node
|
// Abort if user selected an un-selectable node
|
||||||
// Use image over anything else because...?
|
// Use image over anything else because...?
|
||||||
var ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]');
|
var ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]');
|
||||||
/*
|
var node = ftree.getNode(_senders[0].id);
|
||||||
if (img.indexOf('NoSelect') !== -1)
|
|
||||||
|
if (node.im0.indexOf('NoSelect') !== -1)
|
||||||
{
|
{
|
||||||
//ftree.reSelectItem(_previous);
|
//ftree.reSelectItem(_previous);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user