trigger event on input autofill

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Felix Heidecke 2017-02-27 22:49:42 +01:00 committed by Morris Jobke
parent 528a903a7b
commit 13718b23e9
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 2 additions and 9 deletions

View File

@ -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) {