store the permissions retrieved via ajax within the dom element
This commit is contained in:
parent
370ed814f7
commit
6ed2df11fc
1 changed files with 6 additions and 0 deletions
|
@ -745,6 +745,12 @@ $(document).ready(function(){
|
||||||
data.context.attr('data-size', file.size);
|
data.context.attr('data-size', file.size);
|
||||||
data.context.find('td.filesize').text(humanFileSize(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) {
|
if (FileList.loadingDone) {
|
||||||
FileList.loadingDone(file.name, file.id);
|
FileList.loadingDone(file.name, file.id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue