]> source.dussan.org Git - nextcloud-server.git/commitdiff
trigger event on input autofill 3932/head
authorFelix Heidecke <felixheidecke@users.noreply.github.com>
Mon, 27 Feb 2017 21:49:42 +0000 (22:49 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 20 Mar 2017 04:00:58 +0000 (22:00 -0600)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
settings/js/personal.js

index 89491b96657b2e52af9e8c089d5f903328e32684..52ab2f23f87c1534c9f679ec3edb06cb511406cd 100644 (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) {