summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-23 18:57:20 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-23 18:57:20 +0100
commit10eeb351674edab23555d978d809f5df53607daf (patch)
tree5a8ab14e49f36a8cd7be3283a2b3309bccaba543
parente8d12c180941154d9aafd55528466f97f3559d13 (diff)
parentfd8a134dd266300718ba0d79a7db67e7ee4cee02 (diff)
downloadnextcloud-server-10eeb351674edab23555d978d809f5df53607daf.tar.gz
nextcloud-server-10eeb351674edab23555d978d809f5df53607daf.zip
Merge pull request #15121 from owncloud/email-sent-unbold
unbold share email sent notification
-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 2d3b36ae63d..38f7ec0e14d 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -1189,10 +1189,10 @@ $(document).ready(function() {
$('#email').prop('disabled', false);
$('#emailButton').prop('disabled', false);
if (result && result.status == 'success') {
- $('#email').css('font-weight', 'bold');
- $('#email').animate({ fontWeight: 'normal' }, 2000, function() {
- $(this).val('');
- }).val(t('core','Email sent'));
+ $('#email').css('font-weight', 'bold').val(t('core','Email sent'));
+ setTimeout(function() {
+ $('#email').css('font-weight', 'normal').val('');
+ }, 2000);
} else {
OC.dialogs.alert(result.data.message, t('core', 'Error while sharing'));
}