forked from marva/sumorobot-web
remove "sumo-" value on input blur
This commit is contained in:
parent
7ea27bdfb4
commit
47336279a4
@ -528,6 +528,15 @@ window.onload = function() {
|
||||
$("#robot-id").val("sumo-");
|
||||
}
|
||||
});
|
||||
|
||||
/* when robot-id input field gets unfocused */
|
||||
$("#robot-id").focus(function() {
|
||||
/* if the robot-id input value is the previously set "sumo-" */
|
||||
if ($("#robot-id").val() === "sumo-") {
|
||||
/* remove the value */
|
||||
$("#robot-id").val("");
|
||||
}
|
||||
});
|
||||
|
||||
/* robot number button listener */
|
||||
$(".btn-robot-go").click(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user