store the permissions retrieved via ajax within the dom element

This commit is contained in:
Thomas Müller 2013-09-18 13:09:04 +02:00
parent 370ed814f7
commit 6ed2df11fc

View file

@ -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);
}