Commit 6bdd4758 authored by Hubert Denkmair's avatar Hubert Denkmair
Browse files

implement restart button

parent c319c976
......@@ -47,6 +47,13 @@ function setupPreview()
function setupToolbar()
{
$('#bt_run').click(ajaxRun);
$('#bt_restart').click(function() {
$.post('/snake/restart', '', function(data) {
// todo show data.message
console.log(data.message)
});
});
}
function csrfSafeMethod(method) {
......
......@@ -19,7 +19,7 @@
<div id="tools">
<div id="toolbar">
<button id="bt_run">save & run</button>
<button>restart</button>
<button id="bt_restart">restart</button>
<button>save as</button>
<button>load</button>
<button>preferences</button>
......
Supports Markdown
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