Commit c20be5fb authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: minishell shows waiting picture

So that the user knows their command has been sent to the server
parent 9a7a2f32
......@@ -31,11 +31,16 @@ $(document).ready(function () {
event.preventDefault();
var command = $("#shell-input").val();
var data = { command: command };
var old_shell_btn_background = $(".shell_btn").css("background");
$(".shell_btn").css("background", "url(/static/css/images/loading-min.gif) center right no-repeat")
$.post("/runCommand", data, function (data) {
data = ">>> " + command + "\n\n" + data;
$("#shell-result").val(data);
$("#shell-input").val("");
updateHistory();
})
.always( function() {
$(".shell_btn").css("background", old_shell_btn_background);
});
}
});
......
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