MDL-31901: filemanger: fixed bug with switching to treeview in empty folder

This commit is contained in:
Marina Glancy
2012-05-07 11:03:23 +08:00
parent e0ff0867bd
commit 1908ae06fb
+1 -1
View File
@@ -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;
}