]> source.dussan.org Git - nextcloud-server.git/commitdiff
Save display name and email address on paste operations - fixes #22245
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 9 Feb 2016 15:18:47 +0000 (16:18 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 9 Feb 2016 15:20:04 +0000 (16:20 +0100)
settings/js/personal.js

index 65bc88d2098ac5d7d22d67e693a7ca719d672b3e..b0bfa8eb230f76e9d62c34949abe75d218c0af22 100644 (file)
@@ -31,6 +31,14 @@ jQuery.fn.keyUpDelayedOrEnter = function (callback, allowEmptyValue) {
                        cb();
                }
        });
+
+       this.bind('paste', null, function (e) {
+               if(!e.keyCode){
+                       if (allowEmptyValue || that.val() !== '') {
+                               cb();
+                       }
+               }
+       });
 };