Disable Save button in manticore session when the file/folder is not writable
This commit is contained in:
parent
580904174e
commit
9e5d6fe1c1
1 changed files with 4 additions and 2 deletions
|
@ -154,9 +154,11 @@ function kolab_files_init()
|
|||
photo_url: '?_task=addressbook&_action=photo&_email=%email',
|
||||
photo_default_url: rcmail.env.photo_placeholder,
|
||||
// events
|
||||
ready: function(data) { manticore_init(); },
|
||||
documentChanged: function(data) { rcmail.enable_command('document-save', true); },
|
||||
ready: function(data) { manticore_init(); }
|
||||
};
|
||||
|
||||
if (rcmail.env.file_data.writable)
|
||||
manticore_config.documentChanged = function(data) { rcmail.enable_command('document-save', true); };
|
||||
}
|
||||
else if (rcmail.env.action == 'open') {
|
||||
// initialize folders list (for dialogs)
|
||||
|
|
Loading…
Add table
Reference in a new issue