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

Change file action text to 'Shared'

parent 01b3c088
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ OC.Share={
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')));
}
var dir = $('#dir').val();
if (dir.length > 1) {
......@@ -85,8 +86,10 @@ OC.Share={
action.find('img').attr('src', image);
if (shares) {
action.addClass('permanent');
action.html(action.html().replace(t('core', 'Share'), t('core', 'Shared')));
} else {
action.removeClass('permanent');
action.html(action.html().replace(t('core', 'Shared'), t('core', 'Share')));
}
}
if (shares) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment