diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-18 21:25:28 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-18 21:25:28 -0400 |
| commit | d9ecfddd7ba63d3cf94b29053476d1d11118d38e (patch) | |
| tree | 55e759395068e4e21125e140d2a23f1833801ffb /public/assets/javascripts/ui/blueprint/BlueprintView.js | |
| parent | 62a8127787c1ed2f0ae420722be9327e421633bd (diff) | |
saving blueprints
Diffstat (limited to 'public/assets/javascripts/ui/blueprint/BlueprintView.js')
| -rw-r--r-- | public/assets/javascripts/ui/blueprint/BlueprintView.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/public/assets/javascripts/ui/blueprint/BlueprintView.js b/public/assets/javascripts/ui/blueprint/BlueprintView.js index 8330154..e1d360f 100644 --- a/public/assets/javascripts/ui/blueprint/BlueprintView.js +++ b/public/assets/javascripts/ui/blueprint/BlueprintView.js @@ -2,7 +2,7 @@ var BlueprintView = View.extend({ el: "#blueprintView", - action: "/api/blueprint/", + action: "/api/blueprint/show/", events: { }, @@ -20,14 +20,10 @@ var BlueprintView = View.extend({ }, load: function(name){ - if (! name || name == "new") { - this.uploader.load() - return - } - - name = sanitize(name) - - $.get(this.action + name, this.ready.bind(this)) + name = sanitize(name) || "new" + this.uploader.load(name) +// name = sanitize(name) +// $.get(this.action + name, this.ready.bind(this)) }, orbiting: true, |
