Display public icon next to publicly shared files
This commit is contained in:
parent
726933831d
commit
717ab56419
|
@ -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;
|
return icon;
|
||||||
}, function(filename) {
|
}, function(filename) {
|
||||||
if (($('#dropdown').length > 0)) {
|
if (($('#dropdown').length > 0)) {
|
||||||
|
|
Loading…
Reference in New Issue