summaryrefslogtreecommitdiffstats
path: root/static/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/script.js')
-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,