Skip to content
Snippets Groups Projects
Commit 717ab564 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Display public icon next to publicly shared files

parent 72693383
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment