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

Try to fix shared status icons again

parent 60e5054a
Branches
No related tags found
No related merge requests found
......@@ -21,9 +21,12 @@ OC.Share={
if (itemType != 'file' && itemType != 'folder') {
$('a.share[data-item="'+item+'"]').css('background', 'url('+image+') no-repeat center');
} else {
var file = $('tr').filterAttr('data-file', OC.basename(item));
if (file.length > 0) {
$(file).find('.fileactions .action').filterAttr('data-action', 'Share').find('img').attr('src', image);
}
var dir = $('#dir').val();
if ($('#dir').val().length > 1) {
console.log(item);
if (dir.length > 1) {
var last = '';
var path = dir;
// Search for possible parent folders that are shared
......@@ -37,14 +40,6 @@ OC.Share={
last = path;
path = OC.Share.dirname(path);
}
} else {
var file = $('tr').filterAttr('data-file', OC.basename(item));
if (file.length > 0) {
var img = $(file).find('.fileactions .action').filterAttr('data-action', 'Share').find('img');
if (img.attr('src') != OC.imagePath('core', 'actions/public')) {
img.attr('src', image);
}
}
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment