diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index b50d46c98d..fe8b1c5591 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); }