diff options
author | Michael Jobst <mjobst+github@tecratech.de> | 2016-11-21 15:03:45 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-12-23 16:56:55 +0100 |
commit | 969c19b2e926331e2686208507c2643107caf5a1 (patch) | |
tree | c0c03ac7bbcdc7760e97e35ddacef8919ed527e6 /apps/files/js/mainfileinfodetailview.js | |
parent | 56c016946d0695a62e418839cf19786a223b4ae7 (diff) | |
download | nextcloud-server-969c19b2e926331e2686208507c2643107caf5a1.tar.gz nextcloud-server-969c19b2e926331e2686208507c2643107caf5a1.zip |
Fixed size issues on main detail view and disappearing of share recipients (#26603)
* fixed size issues on main detail view and disappearing of share recipients
* Changes due to code comments
* Moved reloadProperties() to FileInfoModel
* Solved Scrutinizer issues
* Bugfix: undefined value used on error
* check if options are set for FileInfoModel.initialize()
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/files/js/mainfileinfodetailview.js')
-rw-r--r-- | apps/files/js/mainfileinfodetailview.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js index 1a69528fd17..e815fa70ecb 100644 --- a/apps/files/js/mainfileinfodetailview.js +++ b/apps/files/js/mainfileinfodetailview.js @@ -130,6 +130,19 @@ if (this.model) { this.model.on('change', this._onModelChanged, this); } + + if (this.model) { + var properties = []; + if( !this.model.has('size') ) { + properties.push(OC.Files.Client.PROPERTY_SIZE); + properties.push(OC.Files.Client.PROPERTY_GETCONTENTLENGTH); + } + + if( properties.length > 0){ + this.model.reloadProperties(properties); + } + } + this.render(); }, |