Pressing enter on media URL queues next
This commit is contained in:
parent
b0cc87e193
commit
f76b509430
3 changed files with 9 additions and 3 deletions
|
|
@ -161,7 +161,7 @@ setInterval(function() {
|
|||
sendVideoUpdate();
|
||||
}, 5000);
|
||||
|
||||
$("#queue_end").click(function() {
|
||||
function queueEnd() {
|
||||
var urls = $("#mediaurl").val().split(",");
|
||||
for(var i = 0; i < urls.length; i++) {
|
||||
if(!urls[i].trim())
|
||||
|
|
@ -178,6 +178,12 @@ $("#queue_end").click(function() {
|
|||
type: type
|
||||
});
|
||||
}
|
||||
}
|
||||
$("#queue_end").click(queueEnd);
|
||||
$("#mediaurl").keydown(function(ev) {
|
||||
if(ev.keyCode == 13) {
|
||||
queueEnd();
|
||||
}
|
||||
});
|
||||
|
||||
$("#queue_next").click(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue