mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Fix incorrect toaddress being passed for emailing private links
This commit is contained in:
parent
0f66870470
commit
c04074692e
1 changed files with 3 additions and 3 deletions
|
|
@ -200,13 +200,13 @@ OC.Share={
|
|||
$('#emailButton').hide();
|
||||
},
|
||||
emailPrivateLink:function() {
|
||||
var link = $('#privateLinkText').val();
|
||||
var file = link.substr(link.lastIndexOf('/') + 1).replace(/%20/g, ' ');
|
||||
$.post(OC.filePath('files_sharing', 'ajax', 'email.php'), { toaddress: $('#email').val(), link: link, file: file } );
|
||||
$('#email').css('font-weight', 'bold');
|
||||
$('#email').animate({ fontWeight: 'normal' }, 2000, function() {
|
||||
$(this).val('');
|
||||
}).val('Email sent');
|
||||
var link = $('#privateLinkText').val();
|
||||
var file = link.substr(link.lastIndexOf('/') + 1).replace(/%20/g, ' ');
|
||||
$.post(OC.filePath('files_sharing', 'ajax', 'email.php'), { toaddress: $('#email').val(), link: link, file: file } );
|
||||
},
|
||||
dirname:function(path) {
|
||||
return path.replace(/\\/g,'/').replace(/\/[^\/]*$/, '');
|
||||
|
|
|
|||
Loading…
Reference in a new issue