From a3eaefa5303ace7bb7dfea85eac83eef661b991e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 9 Feb 2016 16:18:47 +0100 Subject: [PATCH] Save display name and email address on paste operations - fixes #22245 --- settings/js/personal.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/settings/js/personal.js b/settings/js/personal.js index 65bc88d2098..b0bfa8eb230 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -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(); + } + } + }); };