summaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-21 02:50:09 -0700
committerraylu <raylu@mixpanel.com>2011-08-21 02:50:09 -0700
commit569d9165efbd1aeef7238ae4166160865f75377c (patch)
tree0583c58d798042713af56ba70dab78c1e6193582 /static
parent820edebc26f2254bfb78e779a79af70dac2b84d8 (diff)
downloadaudioaxis-569d9165efbd1aeef7238ae4166160865f75377c.tar.xz
don't search when enter is hit on username field
Diffstat (limited to 'static')
-rw-r--r--static/script.js7
1 files changed, 7 insertions, 0 deletions
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,