diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-18 13:09:04 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-18 13:09:04 +0200 |
commit | 6ed2df11fcfbd632c9702fe3e04569fcb456f972 (patch) | |
tree | bbd6fcd9d04b09dbbb46989f7533704ccedc449b /apps | |
parent | 370ed814f76012a97fd40d50c367b2f7240dfc09 (diff) | |
download | nextcloud-server-6ed2df11fcfbd632c9702fe3e04569fcb456f972.tar.gz nextcloud-server-6ed2df11fcfbd632c9702fe3e04569fcb456f972.zip |
store the permissions retrieved via ajax within the dom element
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
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); } |