Display public icon next to publicly shared files

remotes/origin/stable
Michael Gapczynski 15 years ago
parent 726933831d
commit 717ab56419
  1. 14
      apps/files_sharing/js/share.js

@ -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)) {

Loading…
Cancel
Save