summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-11 15:37:01 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-11 15:37:01 +0100
commit45ed0c601003b1f2ebd9e5bb301080b37d43080e (patch)
treebf5c200c24066f7b3d4bc66107514afdff5dbecc /core/js/share.js
parente70aef603f69304ece8105d0532cc55b15c3b7f1 (diff)
downloadnextcloud-server-45ed0c601003b1f2ebd9e5bb301080b37d43080e.tar.gz
nextcloud-server-45ed0c601003b1f2ebd9e5bb301080b37d43080e.zip
if you add/remove more than one user from the share dialog replacing 'Share' with 'Shared' will lead to a string with more and more trailing 'd's
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 58cb787b6d1..6d1c3954044 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -26,7 +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')));
+ action.html(t('core', 'Shared'));
}
var dir = $('#dir').val();
if (dir.length > 1) {
@@ -40,7 +40,7 @@ OC.Share={
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;
@@ -87,10 +87,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')));
+ 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) {