diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-04-21 11:57:29 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-04-21 14:31:13 +0200 |
commit | 53a23364ef5184d049674e50447c2a0fbe8be72a (patch) | |
tree | de5e4674ba2d7c06dd060c951565b30347da4f13 /apps/files/js | |
parent | b0fcf0fa0ee8846e2ba35ede5968ed0227c5675d (diff) | |
download | nextcloud-server-53a23364ef5184d049674e50447c2a0fbe8be72a.tar.gz nextcloud-server-53a23364ef5184d049674e50447c2a0fbe8be72a.zip |
Added empty content message for empty read-only folders
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 9d60e77b0ac..0181acab596 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1623,7 +1623,8 @@ updateEmptyContent: function() { var permissions = this.getDirectoryPermissions(); var isCreatable = (permissions & OC.PERMISSION_CREATE) !== 0; - this.$el.find('#emptycontent').toggleClass('hidden', !isCreatable || !this.isEmpty); + this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty); + this.$el.find('#emptycontent .uploadmessage').toggleClass('hidden', !isCreatable || !this.isEmpty); this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty); }, /** |