Skip to content

Commit

Permalink
fixed it
Browse files Browse the repository at this point in the history
  • Loading branch information
Seanny123 committed Aug 25, 2015
1 parent 400bd98 commit 969c99c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions nengo_gui/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import nengo_gui.user_action
import nengo_gui.config

import ipdb

class Page(object):
"""A handler for a singe page of the nengo_gui.
Expand Down Expand Up @@ -81,7 +80,6 @@ def __init__(self, gui, filename, reset_cfg=False):
self.filename_cfg = gui.filename_cfg

if reset_cfg:
ipdb.set_trace()
self.clear_config()

self.load()
Expand Down
3 changes: 0 additions & 3 deletions nengo_gui/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import nengo_gui.swi as swi
import nengo_gui

import ipdb


class Server(swi.SimpleWebInterface):
"""Web server interface to nengo_gui"""
Expand Down Expand Up @@ -78,7 +76,6 @@ def swi(self, filename=None, reset=None):
return self.create_login_form()

reset_cfg = reset == 'True'
ipdb.set_trace()

page = self.server.gui.create_page(filename, reset_cfg=reset_cfg)

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 @@ -88,7 +88,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&filename=' + filename);
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 969c99c

Please sign in to comment.