diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-17 12:23:39 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-17 12:23:39 -0400 |
| commit | 599b43df07f092b35d25e7adac11db3c3b3d9c76 (patch) | |
| tree | 673cb0fc82c3642b5f99833950dc170289760ddc /public/assets/javascripts/ui/blueprint/BlueprintView.js | |
| parent | 6b3d07293bf674703b286cb396049fb8e83b86b7 (diff) | |
BlueprintEditor
Diffstat (limited to 'public/assets/javascripts/ui/blueprint/BlueprintView.js')
| -rw-r--r-- | public/assets/javascripts/ui/blueprint/BlueprintView.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/public/assets/javascripts/ui/blueprint/BlueprintView.js b/public/assets/javascripts/ui/blueprint/BlueprintView.js index 6b204e5..0a06fda 100644 --- a/public/assets/javascripts/ui/blueprint/BlueprintView.js +++ b/public/assets/javascripts/ui/blueprint/BlueprintView.js @@ -1,7 +1,9 @@ var BlueprintView = View.extend({ el: "#blueprintView", - + + action: "/api/layout/", + events: { }, @@ -16,14 +18,14 @@ var BlueprintView = View.extend({ }, load: function(name){ -// if (! name || name == "new") { + if (! name || name == "new") { // this.ready({ isNew: true, _id: "new", name: "" }) -// return -// } -// -// name = sanitize(name) -// -// $.get(this.action + name, this.ready.bind(this)) + return + } + + name = sanitize(name) + + $.get(this.action + name, this.ready.bind(this)) }, ready: function(data){ |
