mirror of
https://github.com/nextcloud/server.git
synced 2024-08-12 14:11:31 +02:00
Merge public link icon check
This commit is contained in:
parent
31bcb2bd92
commit
594532da9a
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user