This commit is contained in:
EdgarPironti 2015-11-13 14:58:59 -08:00
parent eb0d91fc7e
commit a80871a7a8
2 changed files with 4 additions and 6 deletions

View file

@ -190,7 +190,7 @@ function mousePressEvent(event) {
sendCommand(i, STOP); sendCommand(i, STOP);
} else if (loadIcon[i] === toolBars[i].clicked(clickedOverlay, false)) { } else if (loadIcon[i] === toolBars[i].clicked(clickedOverlay, false)) {
input_text = Window.prompt("Insert the url of the clip: ",""); input_text = Window.prompt("Insert the url of the clip: ","");
if(!(input_text === "" || input_text === null)) { if (!(input_text === "" || input_text === null)) {
clip_url = input_text; clip_url = input_text;
sendCommand(i, LOAD); sendCommand(i, LOAD);
} }
@ -211,7 +211,7 @@ function mousePressEvent(event) {
sendCommand(i, STOP); sendCommand(i, STOP);
} else if (loadIcon[i] === toolBars[i].clicked(clickedOverlay, false)) { } else if (loadIcon[i] === toolBars[i].clicked(clickedOverlay, false)) {
input_text = Window.prompt("Insert the url of the clip: ",""); input_text = Window.prompt("Insert the url of the clip: ","");
if(!(input_text === "" || input_text === null)) { if (!(input_text === "" || input_text === null)) {
clip_url = input_text; clip_url = input_text;
sendCommand(i, LOAD); sendCommand(i, LOAD);
} }

View file

@ -66,12 +66,10 @@ function getAction(controlEntity) {
var uD_action = userData.actionKey.uD_action; var uD_action = userData.actionKey.uD_action;
var uD_url = userData.clipKey.uD_url; var uD_url = userData.clipKey.uD_url;
print("Sono " + id + " e ho ricevuto un comando da " + uD_id);
Entities.deleteEntity((Entities.getEntityProperties(controlEntity)).id); Entities.deleteEntity((Entities.getEntityProperties(controlEntity)).id);
if(uD_id === id || uD_id === -1) { if (uD_id === id || uD_id === -1) {
if(uD_action === 6) if (uD_action === 6)
clip_url = uD_url; clip_url = uD_url;
return uD_action; return uD_action;