MDL-31901: filemanger: fixed bug with switching to treeview in empty folder
This commit is contained in:
@@ -450,7 +450,7 @@ M.form_filemanager.init = function(Y, options) {
|
||||
},
|
||||
view_files: function(appendfiles) {
|
||||
this.filemanager.removeClass('fm-updating').removeClass('fm-noitems');
|
||||
if ((appendfiles == null) && (!this.options.list || this.options.list.length == 0)) {
|
||||
if ((appendfiles == null) && (!this.options.list || this.options.list.length == 0) && this.viewmode != 2) {
|
||||
this.filemanager.addClass('fm-noitems');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user