]> source.dussan.org Git - nextcloud-server.git/commitdiff
unbold share email sent notification
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Mon, 23 Mar 2015 14:26:28 +0000 (15:26 +0100)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Mon, 23 Mar 2015 15:53:20 +0000 (16:53 +0100)
core/js/share.js

index 8804db12a08f20570cae13b0c4ad3767681e3446..1c384dc67fa4c712769594b1d3ee086410fbf7f3 100644 (file)
@@ -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'));
                                }