use new getNode function on tree widget to get node and its attributes

This commit is contained in:
Klaus Leithoff 2014-02-11 16:01:31 +00:00
parent ec989fc535
commit 95eb49aa85
2 changed files with 5 additions and 3 deletions

View File

@ -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',
), ),
); );

View File

@ -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;
}, },