Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-25 18:55:17 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-25 18:55:17 +0300
commit35423102af447171ef689f8a3e2f6ab3b2d89848 (patch)
tree5fb9bbc06a31b949f183e0d2a551a9ff14a427b1 /core
parent914ac09aaec9e4f8c5e0ed10ca881cc85cef4b28 (diff)
parent1add45ae6af2411b37f3e635a8b01a9ffcc4b43e (diff)
Merge pull request #22611 from owncloud/add-uid-on-hover
Add the uid on hover for sharing autocomplete
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogshareelistview.js8
-rw-r--r--core/js/sharedialogview.js7
2 files changed, 12 insertions, 3 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index e26421dcaed..e8976bb26e6 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -16,12 +16,12 @@
var TEMPLATE =
'<ul id="shareWithList" class="shareWithList">' +
'{{#each sharees}}' +
- ' <li data-share-id="{{shareId}}" data-share-type="{{shareType}}" data-share-with="{{shareWith}}" title="{{shareWith}}">' +
+ ' <li data-share-id="{{shareId}}" data-share-type="{{shareType}}" data-share-with="{{shareWith}}">' +
' <a href="#" class="unshare"><span class="icon-loading-small hidden"></span><img class="svg" alt="{{unshareLabel}}" title="{{unshareLabel}}" src="{{unshareImage}}" /></a>' +
' {{#if avatarEnabled}}' +
' <div class="avatar {{#if modSeed}}imageplaceholderseed{{/if}}" data-username="{{shareWith}}" {{#if modSeed}}data-seed="{{shareWith}} {{shareType}}"{{/if}}></div>' +
' {{/if}}' +
- ' <span class="username">{{shareWithDisplayName}}</span>' +
+ ' <span class="has-tooltip username" title="{{shareWith}}">{{shareWithDisplayName}}</span>' +
' {{#if mailNotificationEnabled}} {{#unless isRemoteShare}}' +
' <input id="mail-{{cid}}-{{shareWith}}" type="checkbox" name="mailNotification" class="mailNotification checkbox" {{#if wasMailSent}}checked="checked"{{/if}} />' +
' <label for="mail-{{cid}}-{{shareWith}}">{{notifyByMailLabel}}</label>' +
@@ -193,6 +193,10 @@
});
}
+ this.$el.find('.has-tooltip').tooltip({
+ placement: 'bottom'
+ });
+
this.delegateEvents();
return this;
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index fbb3a915810..5e1e14541c5 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -221,7 +221,7 @@
.tooltip('hide')
.tooltip({
placement: 'bottom',
- trigger: 'manual',
+ trigger: 'manual'
})
.tooltip('fixTitle')
.tooltip('show');
@@ -259,9 +259,14 @@
}
}
insert.text(text);
+ insert.attr('title', item.value.shareWith);
if(item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
insert = insert.wrapInner('<strong></strong>');
}
+ insert.tooltip({
+ placement: 'bottom',
+ container: 'body'
+ });
return $("<li>")
.addClass((item.value.shareType === OC.Share.SHARE_TYPE_GROUP) ? 'group' : 'user')
.append(insert)