summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-04-01 09:07:04 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-07-07 15:10:03 +0200
commit059cc1f22e20d4930f6d33f46b85bda183cab1f4 (patch)
tree0347a85da0f659d3988dfea0941a16cf01fbaa93 /apps/files_sharing/js
parentc809db86f5a3ea20875e9963d8fe074ae45b49e1 (diff)
downloadnextcloud-server-059cc1f22e20d4930f6d33f46b85bda183cab1f4.tar.gz
nextcloud-server-059cc1f22e20d4930f6d33f46b85bda183cab1f4.zip
Update header during update callback
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index 3446cb37a87..ca87acd6ceb 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -134,6 +134,11 @@
// root has special permissions
this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty);
this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty);
+
+ // hide expiration date header for non link only shares
+ if (!this._linksOnly) {
+ this.$el.find('th.column-expiration').addClass('hidden');
+ }
}
else {
OCA.Files.FileList.prototype.updateEmptyContent.apply(this, arguments);
@@ -208,11 +213,6 @@
if (shares[0].ocs && shares[0].ocs.data) {
files = files.concat(this._makeFilesFromShares(shares[0].ocs.data));
-
- // hide expiration date header for non link only shares
- if (!this._linksOnly) {
- this.$el.find('th.column-expiration').addClass('hidden');
- }
}
if (remoteShares && remoteShares[0].ocs && remoteShares[0].ocs.data) {