From 8b62b2684a082cff31047b5066bd60993d31f69e Mon Sep 17 00:00:00 2001 From: Ramiro Aparicio Date: Fri, 4 Oct 2013 13:10:51 +0200 Subject: [PATCH] Fix disabled status after sending the email --- core/js/share.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/js/share.js b/core/js/share.js index 82f5da0bae..0e75747b70 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -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() {