We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 2ed1c23f authored by Jonas Haraldsson's avatar Jonas Haraldsson

prevent form submit in player when adding tag

parent fb37e478
...@@ -175,11 +175,9 @@ function playerReady() { ...@@ -175,11 +175,9 @@ function playerReady() {
$('#close_tag').on('click', toggleTag); $('#close_tag').on('click', toggleTag);
$('#close_tag').hide(); $('#close_tag').hide();
$('#tag_button').on('click', tag); $('#tag_input').on('submit', function(event) {
$('#tags').keyup(function(event) { event.preventDefault();
if(event.keyCode == 13) { tag();
tag();
}
}); });
$('#tag_input').hide(); $('#tag_input').hide();
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment