From: Felix Heidecke Date: Mon, 27 Feb 2017 21:49:42 +0000 (+0100) Subject: trigger event on input autofill X-Git-Tag: v12.0.0beta1~386^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3932%2Fhead;p=nextcloud-server.git trigger event on input autofill Signed-off-by: Morris Jobke --- diff --git a/settings/js/personal.js b/settings/js/personal.js index 89491b96657..52ab2f23f87 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -20,7 +20,8 @@ OC.Settings = OC.Settings || {}; jQuery.fn.keyUpDelayedOrEnter = function (callback, allowEmptyValue) { var cb = callback; var that = this; - this.keyup(_.debounce(function (event) { + + this.on('input', _.debounce(function (event) { // enter is already handled in keypress if (event.keyCode === 13) { return; @@ -36,14 +37,6 @@ jQuery.fn.keyUpDelayedOrEnter = function (callback, allowEmptyValue) { cb(event); } }); - - this.bind('paste', null, function (event) { - if(!event.keyCode){ - if (allowEmptyValue || that.val() !== '') { - cb(event); - } - } - }); }; function updateAvatar (hidedefault) {