diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-20 01:09:39 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 01:09:39 -0600 |
commit | ab16383853a68574f5eff1afdb6a83e239305fdd (patch) | |
tree | b1064c47e73d67f430b29c90a9af534af1ed98ad | |
parent | c9231f20e914b3a47a453e5586107ac9fa013810 (diff) | |
parent | 13718b23e988acc407b196f2563469202e3b7d42 (diff) | |
download | nextcloud-server-ab16383853a68574f5eff1afdb6a83e239305fdd.tar.gz nextcloud-server-ab16383853a68574f5eff1afdb6a83e239305fdd.zip |
Merge pull request #3932 from nextcloud/downstream-27273
trigger event on input autofill
-rw-r--r-- | settings/js/personal.js | 11 |
1 files changed, 2 insertions, 9 deletions
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) { |