diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-03-14 10:48:28 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-03-14 10:48:28 +0100 |
commit | ac48563efd74675f75b2b300b7d8b0c4f74be70b (patch) | |
tree | f90d55090fbb08f7ab3db2426e8362e3a87a51ba /core | |
parent | b37aae9925a1d5516a24f1f9db31a156c2d3bc72 (diff) | |
download | nextcloud-server-ac48563efd74675f75b2b300b7d8b0c4f74be70b.tar.gz nextcloud-server-ac48563efd74675f75b2b300b7d8b0c4f74be70b.zip |
add spans around replaced 'Shared' indicators to make text hide on mobile
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/share.js b/core/js/share.js index 129e50b22d5..90119105fa1 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -48,7 +48,7 @@ OC.Share={ var action = $(file).find('.fileactions .action[data-action="Share"]'); var img = action.find('img').attr('src', image); action.addClass('permanent'); - action.html(' '+t('core', 'Shared')).prepend(img); + action.html(' <span>'+t('core', 'Shared')+'</span>').prepend(img); } else { var dir = $('#dir').val(); if (dir.length > 1) { @@ -63,7 +63,7 @@ OC.Share={ if (img.attr('src') != OC.imagePath('core', 'actions/public')) { img.attr('src', image); $(action).addClass('permanent'); - $(action).html(' '+t('core', 'Shared')).prepend(img); + $(action).html(' <span>'+t('core', 'Shared')+'</span>').prepend(img); } }); } @@ -103,10 +103,10 @@ OC.Share={ var img = action.find('img').attr('src', image); if (shares) { action.addClass('permanent'); - action.html(' '+ escapeHTML(t('core', 'Shared'))).prepend(img); + action.html(' <span>'+ escapeHTML(t('core', 'Shared'))+'</span>').prepend(img); } else { action.removeClass('permanent'); - action.html(' '+ escapeHTML(t('core', 'Share'))).prepend(img); + action.html(' <span>'+ escapeHTML(t('core', 'Share'))+'</span>').prepend(img); } } } |