diff --git a/assets/js/sumorobot.js b/assets/js/sumorobot.js index 1fd71e0..37ed4df 100755 --- a/assets/js/sumorobot.js +++ b/assets/js/sumorobot.js @@ -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() {