]> source.dussan.org Git - nextcloud-server.git/commitdiff
if you add/remove more than one user from the share dialog replacing 'Share' with...
authorBjörn Schießle <schiessle@owncloud.com>
Mon, 11 Feb 2013 14:37:01 +0000 (15:37 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Mon, 11 Feb 2013 14:37:01 +0000 (15:37 +0100)
core/js/share.js

index 58cb787b6d1038585748c2b5fccfd9d19ed18d29..6d1c3954044c03f2dfc47ed26967195d0c0e7595 100644 (file)
@@ -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) {