Permalink
Browse files

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

…folder
  • Loading branch information...
marinaglancy committed May 7, 2012
1 parent e0ff086 commit 1908ae06fb495df678bd86b46cc0620bb85ec2bb
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/form/filemanager.js
View
@@ -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;
}

0 comments on commit 1908ae0

Please sign in to comment.