summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorRamiro Aparicio <rapariciog@gmail.com>2013-10-04 13:10:51 +0200
committerRamiro Aparicio <rapariciog@gmail.com>2013-10-04 13:10:51 +0200
commit8b62b2684a082cff31047b5066bd60993d31f69e (patch)
tree34d89ca5c525776ded122077dfc127fc59f350ad /core/js
parentde175a4b0f0971c9cbbf912bbc3fd8cbc190b53d (diff)
downloadnextcloud-server-8b62b2684a082cff31047b5066bd60993d31f69e.tar.gz
nextcloud-server-8b62b2684a082cff31047b5066bd60993d31f69e.zip
Fix disabled status after sending the email
Diffstat (limited to 'core/js')
-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 82f5da0baea..0e75747b701 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() {