diff options
Diffstat (limited to 'static/functions')
-rw-r--r-- | static/functions/recommend.js | 2 | ||||
-rw-r--r-- | static/functions/validate_upload.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/static/functions/recommend.js b/static/functions/recommend.js index 7ef6226..b11e2b0 100644 --- a/static/functions/recommend.js +++ b/static/functions/recommend.js @@ -42,7 +42,7 @@ $("#recommendation_note").keypress(function(e) { state = $("#send_recommendation").attr("disabled"); if (typeof state === 'undefined' && e.keyCode == 13) - { + { e.preventDefault(); send_recommendation(); } diff --git a/static/functions/validate_upload.js b/static/functions/validate_upload.js index ca628f2..e464bd7 100644 --- a/static/functions/validate_upload.js +++ b/static/functions/validate_upload.js @@ -7,7 +7,7 @@ checkHasMainArtist(e); } }); - + /** * Make sure a main artist is selected. */ @@ -25,5 +25,5 @@ } } }); - + })(jQuery);
\ No newline at end of file |