Fix moving sessions list columns and proper closing of loading message on request errors

This commit is contained in:
Aleksander Machniak 2016-02-02 18:53:40 +01:00
parent 1f88231db9
commit 2f3e9f960c
2 changed files with 8 additions and 7 deletions

View file

@ -1708,7 +1708,7 @@ rcube_webmail.prototype.sessions_list_update = function(head)
var list = this.sessionslist;
$('thead', list.fixed_header ? list.fixed_header : list.list).html(head);
kolab_files_list_coltypes();
kolab_files_list_coltypes('sessions');
file_api.sessions_list();
};
@ -1912,9 +1912,9 @@ function kolab_files_ui()
return rcmail.display_message(this.t(label), type);
};
this.http_error = function(request, status, err)
this.http_error = function(request, status, err, data)
{
rcmail.http_error(request, status, err);
rcmail.http_error(request, status, err, data ? data.req_id : null);
};
// check if specified/current folder/view is writable

View file

@ -679,11 +679,12 @@ class kolab_files_engine
*/
protected function list_update($prefs, $type = 'files')
{
$prefix = 'kolab_' . $type . '_list_';
$attrib = $_SESSION[$prefix . 'attrib'];
$prefix = 'kolab_' . $type . '_list_';
$c_prefix = 'kolab_files' . ($type != 'files' ? '_' . $type : '') . '_list_';
$attrib = $_SESSION[$prefix . 'attrib'];
if (!empty($prefs[$prefix . 'cols'])) {
$attrib['columns'] = $prefs[$prefix . 'cols'];
if (!empty($prefs[$c_prefix . 'cols'])) {
$attrib['columns'] = $prefs[$c_prefix . 'cols'];
$_SESSION[$prefix . 'attrib'] = $attrib;
}