]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change file action text to 'Shared'
authorMichael Gapczynski <mtgap@owncloud.com>
Tue, 29 Jan 2013 04:13:38 +0000 (23:13 -0500)
committerMichael Gapczynski <mtgap@owncloud.com>
Tue, 29 Jan 2013 04:13:38 +0000 (23:13 -0500)
core/js/share.js

index d404b910e48f14d2ad1d4570ff774f5c022b7189..1e3a34b74526d8dc90c0a550829a9f7492ae1187 100644 (file)
@@ -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) {