Display "loading..." message when fetching folders list

This commit is contained in:
Aleksander Machniak 2016-02-04 12:45:08 +01:00
parent d35a3084ae
commit 82967b7f63

View file

@ -1941,14 +1941,16 @@ function kolab_files_ui()
params = {} params = {}
params.permissions = 1; params.permissions = 1;
params.req = this.set_busy(true, 'loading');
this.req = this.set_busy(true, 'loading');
this.request('folder_list', this.list_params = params, 'folder_list_response'); this.request('folder_list', this.list_params = params, 'folder_list_response');
}; };
// folder list response handler // folder list response handler
this.folder_list_response = function(response) this.folder_list_response = function(response)
{ {
rcmail.hide_message(this.list_params.req);
if (!this.response(response)) if (!this.response(response))
return; return;