From 569d9165efbd1aeef7238ae4166160865f75377c Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 21 Aug 2011 02:50:09 -0700 Subject: don't search when enter is hit on username field --- static/script.js | 7 +++++++ templates/p.html | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/static/script.js b/static/script.js index ed5e2f9..4274c9c 100644 --- a/static/script.js +++ b/static/script.js @@ -213,6 +213,13 @@ function search(query) { return false; } +function userKeyPress(e) { + if (e.keyCode == 13) {// enter + $('#song').focus(); + return false; + } +} + function add(id, title) { params = { pid: pid, diff --git a/templates/p.html b/templates/p.html index 76e1dfd..8811e0a 100644 --- a/templates/p.html +++ b/templates/p.html @@ -5,7 +5,7 @@ Audio Axis
- +
-- cgit v1.2.3