summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-04-13 17:32:00 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-04-21 12:32:41 +0200
commit699691f910fb28a27e167ef59adf2a56bd023b7e (patch)
tree06b1f836c1023170ad388ce134572110ee0d20e8 /core/js
parent2aed501f7fbe146cd476b16c4549d72011a719aa (diff)
downloadnextcloud-server-699691f910fb28a27e167ef59adf2a56bd023b7e.tar.gz
nextcloud-server-699691f910fb28a27e167ef59adf2a56bd023b7e.zip
remember email when setting expiration date
fixes #22947
Diffstat (limited to 'core/js')
-rw-r--r--core/js/sharedialoglinkshareview.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js
index cfe7402c44b..16a3db038f6 100644
--- a/core/js/sharedialoglinkshareview.js
+++ b/core/js/sharedialoglinkshareview.js
@@ -42,7 +42,7 @@
' {{/if}}' +
' {{#if mailPublicNotificationEnabled}}' +
'<form id="emailPrivateLink" class="emailPrivateLinkForm">' +
- ' <input id="email" class="emailField" value="" placeholder="{{mailPrivatePlaceholder}}" type="text" />' +
+ ' <input id="email" class="emailField" value="{{email}}" placeholder="{{mailPrivatePlaceholder}}" type="text" />' +
' <input id="emailButton" class="emailButton" type="submit" value="{{mailButtonText}}" />' +
'</form>' +
' {{/if}}' +
@@ -241,6 +241,7 @@
render: function() {
var linkShareTemplate = this.template();
var resharingAllowed = this.model.sharePermissionPossible();
+ var email = this.$el.find('.emailField').val();
if(!resharingAllowed
|| !this.showLink
@@ -288,7 +289,8 @@
publicUploadLabel: t('core', 'Allow editing'),
mailPublicNotificationEnabled: isLinkShare && this.configModel.isMailPublicNotificationEnabled(),
mailPrivatePlaceholder: t('core', 'Email link to person'),
- mailButtonText: t('core', 'Send')
+ mailButtonText: t('core', 'Send'),
+ email: email
}));
var $emailField = this.$el.find('.emailField');