Disable Save button in manticore session when the file/folder is not writable

This commit is contained in:
Aleksander Machniak 2015-12-03 14:59:05 +01:00
parent 580904174e
commit 9e5d6fe1c1

View file

@ -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)