summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-21 13:02:52 -0700
committerVincent Petry <pvince81@owncloud.com>2013-10-21 13:02:52 -0700
commitfa1864971e9a9f9093f9a28dcf163f45652edf22 (patch)
tree239f06c11cf3fc295bfc181b14b30ff78494f98c
parent635a46b3736be2c38835cb38441d969e9d45bab1 (diff)
parent8b62b2684a082cff31047b5066bd60993d31f69e (diff)
downloadnextcloud-server-fa1864971e9a9f9093f9a28dcf163f45652edf22.tar.gz
nextcloud-server-fa1864971e9a9f9093f9a28dcf163f45652edf22.zip
Merge pull request #5120 from frisco82/sendEmailJS
Fix disabled status after sending a share link email
-rw-r--r--core/js/share.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 17d69d6b4b3..bc5ab0a8ad3 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -715,14 +715,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() {