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

Merge public link icon check

parent 31bcb2bd
No related branches found
No related tags found
No related merge requests found
......@@ -12,20 +12,11 @@ $(document).ready(function() {
success: function(users) {
if (users.length > 0) {
icon = OC.imagePath('core', 'actions/shared');
} else {
icon = OC.imagePath('core', 'actions/share');
}
}
});
$.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');
$.each(users, function(index, row) {
if (row.uid_shared_with == 'public') {
icon = OC.imagePath('core', 'actions/public');
}
});
} else {
icon = OC.imagePath('core', 'actions/share');
}
......
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