Fix disabled status after sending the email
This commit is contained in:
parent
de175a4b0f
commit
8b62b2684a
1 changed files with 4 additions and 4 deletions
|
@ -679,14 +679,14 @@ $(document).ready(function() {
|
|||
var file = $('tr').filterAttr('data-id', String(itemSource)).data('file');
|
||||
var email = $('#email').val();
|
||||
if (email != '') {
|
||||
$('#email').attr('disabled', "disabled");
|
||||
$('#email').prop('disabled', true);
|
||||
$('#email').val(t('core', 'Sending ...'));
|
||||
$('#emailButton').attr('disabled', "disabled");
|
||||
$('#emailButton').prop('disabled', true);
|
||||
|
||||
$.post(OC.filePath('core', 'ajax', 'share.php'), { action: 'email', toaddress: email, link: link, itemType: itemType, itemSource: itemSource, file: file},
|
||||
function(result) {
|
||||
$('#email').attr('disabled', "false");
|
||||
$('#emailButton').attr('disabled', "false");
|
||||
$('#email').prop('disabled', false);
|
||||
$('#emailButton').prop('disabled', false);
|
||||
if (result && result.status == 'success') {
|
||||
$('#email').css('font-weight', 'bold');
|
||||
$('#email').animate({ fontWeight: 'normal' }, 2000, function() {
|
||||
|
|
Loading…
Reference in a new issue