summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index b50d46c98d3..fe8b1c55912 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -745,6 +745,12 @@ $(document).ready(function(){
data.context.attr('data-size', file.size);
data.context.find('td.filesize').text(humanFileSize(file.size));
}
+ var permissions = data.context.data('permissions');
+ if(permissions != file.permissions) {
+ data.context.attr('data-permissions', file.permissions);
+ data.context.data('permissions', file.permissions);
+ }
+ FileActions.display(data.context.find('td.filename'));
if (FileList.loadingDone) {
FileList.loadingDone(file.name, file.id);
}