Display public icon next to publicly shared files

This commit is contained in:
Michael Gapczynski 2011-08-16 12:18:31 -04:00
parent 726933831d
commit 717ab56419
1 changed files with 14 additions and 0 deletions

View File

@ -17,6 +17,20 @@ $(document).ready(function() {
}
}
});
$.ajax({
type: 'GET',
url: OC.linkTo('files_publiclink', 'ajax/getlink.php'),
dataType: 'json',
data: 'path='+file,
async: false,
success: function(link) {
if (link.length > 0) {
icon = OC.imagePath('core', 'actions/public');
} else {
icon = OC.imagePath('core', 'actions/share');
}
}
});
return icon;
}, function(filename) {
if (($('#dropdown').length > 0)) {