Skip to content

Commit

Permalink
Merge pull request #540 from nengo/fix-reset-layout
Browse files Browse the repository at this point in the history
Fix reset layout
  • Loading branch information
tcstewar committed Aug 31, 2015
2 parents a28d51c + 969c99c commit 0a16e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nengo_gui/static/sim_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ Nengo.SimControl.prototype.on_pause_click = function(event) {
}
};

/* informs the backend simulator of the time being reset */
Nengo.SimControl.prototype.reset = function() {
this.paused = true;
this.ws.send('reset');
Expand Down
2 changes: 1 addition & 1 deletion nengo_gui/static/top_toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Nengo.Toolbar.prototype.file_name = function() {
/** Tells the server to reset the model layout to the default,
* by deleting the config file and reloading the script */
Nengo.Toolbar.prototype.reset_model_layout = function () {
window.location.assign('/?reset=True');
window.location.assign('/?reset=True&filename=' + $("#filename")[0].innerHTML);
}

/** Function called by event handler in order to launch modal.
Expand Down

0 comments on commit 0a16e91

Please sign in to comment.