aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorFelix Heidecke <felixheidecke@users.noreply.github.com>2017-02-27 22:49:42 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-19 22:00:58 -0600
commit13718b23e988acc407b196f2563469202e3b7d42 (patch)
tree4624e6367f6132630f99432e7196794c1e36605e /settings
parent528a903a7b23ea628e6ec2fc9a221821297c0bec (diff)
downloadnextcloud-server-13718b23e988acc407b196f2563469202e3b7d42.tar.gz
nextcloud-server-13718b23e988acc407b196f2563469202e3b7d42.zip
trigger event on input autofill
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js11
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) {