]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adds copy tooltip to clipboards
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 15 Nov 2016 18:30:59 +0000 (19:30 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 15 Nov 2016 18:30:59 +0000 (19:30 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/federatedfilesharing/templates/settings-personal.php
core/js/sharedialoglinkshareview.js
settings/templates/personal.php

index 98a1cd7f751f9603b3ce6c436224ba5a6c679b44..c8fc1caf7d6a95b00db4cf5abac08c048e97bb84 100644 (file)
@@ -12,7 +12,7 @@ style('federatedfilesharing', 'settings-personal');
                <p>
                        <?php p($l->t('Your Federated Cloud ID:')); ?>
                        <strong id="cloudid"><?php p($_['cloudId']); ?></strong>
-                       <a class="clipboardButton icon icon-clippy" data-clipboard-target="#cloudid"></a>
+                       <a class="clipboardButton icon icon-clippy hasTooltip" data-clipboard-target="#cloudid" title="<?php p($l->t('Copy')); ?>"></a>
                </p>
 
                <br>
index bbc8f1b4547a75456ee094abd1e8885c597b6fd3..3ba124efc1540e85d376f1e6095e91dcaec58f63 100644 (file)
@@ -27,7 +27,7 @@
                        '<div class="oneline">' +
                        '<label for="linkText-{{cid}}" class="hidden-visually">{{urlLabel}}</label>' +
                        '<input id="linkText-{{cid}}" class="linkText {{#unless isLinkShare}}hidden{{/unless}}" type="text" readonly="readonly" value="{{shareLinkURL}}" />' +
-                       '<a class="{{#unless isLinkShare}}hidden-visually{{/unless}} clipboardButton icon icon-clippy" data-clipboard-target="#linkText-{{cid}}"></a>' +
+                       '<a class="{{#unless isLinkShare}}hidden-visually{{/unless}} clipboardButton icon icon-clippy hasTooltip" title="{{copy}}" data-clipboard-target="#linkText-{{cid}}"></a>' +
                        '</div>' +
                        '    {{#if publicUpload}}' +
                        '<div id="allowPublicUploadWrapper">' +
                                publicUploadLabel: t('core', 'Allow upload and editing'),
                                hideFileListLabel: t('core', 'Hide file listing'),
                                mailPrivatePlaceholder: t('core', 'Email link to person'),
-                               mailButtonText: t('core', 'Send')
+                               mailButtonText: t('core', 'Send'),
+                               copy: t('core', 'Copy')
                        }));
 
                        this.delegateEvents();
index ea1c7ba6459b6372183bf9caf6a061ee0701eb09..ddf09444e5df3e2d9f4383f3540372605a3cdbb1 100644 (file)
@@ -241,7 +241,7 @@ if($_['passwordChangeSupported']) {
                <div class="app-password-row">
                        <span class="app-password-label"><?php p($l->t('Password')); ?></span>
                        <input id="new-app-password" type="text" readonly="readonly"/>
-                       <a class="clipboardButton icon icon-clippy" data-clipboard-target="#new-app-password"></a>
+                       <a class="clipboardButton icon icon-clippy hasTooltip" data-clipboard-target="#new-app-password" title="<?php p($l->t('Copy')); ?>"></a>
                        <button id="app-password-hide" class="button"><?php p($l->t('Done')); ?></button>
                </div>
        </div>