summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-11-23 17:51:56 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-11-23 17:51:56 +0100
commit5a9c99e6ac53ec021bcd124c2b8664fe269a5168 (patch)
tree3807756037d0ccffd459aff85bc2eba2802bcde0 /apps/files/js
parentb3b34c08d173a2bb4518552ca92d81915d00ca53 (diff)
downloadnextcloud-server-5a9c99e6ac53ec021bcd124c2b8664fe269a5168.tar.gz
nextcloud-server-5a9c99e6ac53ec021bcd124c2b8664fe269a5168.zip
recycle SharedFileInfo values in fileInfo
fileInfo is composed of data from sharing, however additional data is pulled when sidebar opens, e.g. the size. Then, existing data is overwritten by data from the other source (files). The data points that would be lost are not dirty however and still used, so we keep them. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6996e423776..10efa54496a 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -553,9 +553,6 @@
actionsWidth += $(action).outerWidth();
});
- // subtract app navigation toggle when visible
- containerWidth -= $('#app-navigation-toggle').width();
-
this.breadcrumb._resize();
this.$table.find('>thead').width($('#app-content').width() - OC.Util.getScrollBarWidth());
@@ -1369,7 +1366,7 @@
* @return new tr element (not appended to the table)
*/
add: function(fileData, options) {
- var index = -1;
+ var index;
var $tr;
var $rows;
var $insertionPoint;