aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-25 20:20:29 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-25 20:20:29 -0500
commitaa2ea9e3de6002a8b58adf122a4562ed478c2a81 (patch)
treee70ce6a8926fa58512113bbe99a3fd21c83a11e1 /core
parentd713948d3f85a6e0a369bf1a9052ce563250e3da (diff)
downloadnextcloud-server-aa2ea9e3de6002a8b58adf122a4562ed478c2a81.tar.gz
nextcloud-server-aa2ea9e3de6002a8b58adf122a4562ed478c2a81.zip
Fix adding share icons to share action
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 6d1c3954044..faa64103b7b 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -24,9 +24,9 @@ OC.Share={
var file = $('tr').filterAttr('data-file', OC.basename(item));
if (file.length > 0) {
var action = $(file).find('.fileactions .action').filterAttr('data-action', 'Share');
- action.find('img').attr('src', image);
+ var img = action.find('img').attr('src', image);
action.addClass('permanent');
- action.html(t('core', 'Shared'));
+ action.html(t('core', ' Shared')).prepend(img);
}
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(t('core', 'Shared'));
+ action.html(t('core', ' Shared')).prepend(img);
}
}
last = path;
@@ -84,13 +84,13 @@ OC.Share={
$('a.share[data-item="'+itemSource+'"]').css('background', 'url('+image+') no-repeat center');
} else {
var action = $(file).find('.fileactions .action').filterAttr('data-action', 'Share');
- action.find('img').attr('src', image);
+ var img = action.find('img').attr('src', image);
if (shares) {
action.addClass('permanent');
- action.html(t('core', 'Shared'));
+ action.html(t('core', ' Shared')).prepend(img);
} else {
action.removeClass('permanent');
- action.html(t('core', 'Share'));
+ action.html(t('core', ' Share')).prepend(img);
}
}
if (shares) {