var action = $(file).find('.fileactions .action').filterAttr('data-action', 'Share');
action.find('img').attr('src', image);
action.addClass('permanent');
- action.html(action.html().replace(t('core', 'Share'), t('core', 'Shared')));
+ action.html(t('core', 'Shared'));
}
var dir = $('#dir').val();
if (dir.length > 1) {
if (img.attr('src') != OC.imagePath('core', 'actions/public')) {
img.attr('src', image);
action.addClass('permanent');
- action.html(action.html().replace(t('core', 'Share'), t('core', 'Shared')));
+ action.html(t('core', 'Shared'));
}
}
last = path;
action.find('img').attr('src', image);
if (shares) {
action.addClass('permanent');
- action.html(action.html().replace(t('core', 'Share'), t('core', 'Shared')));
+ action.html(t('core', 'Shared'));
} else {
action.removeClass('permanent');
- action.html(action.html().replace(t('core', 'Shared'), t('core', 'Share')));
+ action.html(t('core', 'Share'));
}
}
if (shares) {