From 23bfe083a19d433608800f1e1a00c71b2d54af7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Wed, 18 Sep 2013 13:09:04 +0200 Subject: [PATCH] store the permissions retrieved via ajax within the dom element --- apps/files/js/filelist.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index ad69f0b3268..bfeb647c937 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -469,6 +469,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); } -- 2.39.5