[Pkg-owncloud-commits] [owncloud] 170/199: prevent pageload if pressed enter on name email change

David Prévot taffit at moszumanska.debian.org
Sun Jun 1 18:53:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 4843d13056f1570248647d2d31fd0962a8c1a6e3
Author: Volkan Gezer <volkangezer at gmail.com>
Date:   Fri May 30 15:12:39 2014 +0200

    prevent pageload if pressed enter on name email change
---
 settings/js/personal.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/settings/js/personal.js b/settings/js/personal.js
index 9967ddc..f56dd34 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -26,7 +26,7 @@ jQuery.fn.keyUpDelayedOrEnter = function(callback){
 		}
 	}, 1000));
 
-	this.keypress(function () {
+	this.keypress(function (event) {
 		if (event.keyCode === 13 && that.val() !== '' ){
 			event.preventDefault();
 			cb();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list