summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/blueprint/BlueprintView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-08-17 12:23:39 -0400
committerJules Laplace <jules@okfoc.us>2015-08-17 12:23:39 -0400
commit599b43df07f092b35d25e7adac11db3c3b3d9c76 (patch)
tree673cb0fc82c3642b5f99833950dc170289760ddc /public/assets/javascripts/ui/blueprint/BlueprintView.js
parent6b3d07293bf674703b286cb396049fb8e83b86b7 (diff)
BlueprintEditor
Diffstat (limited to 'public/assets/javascripts/ui/blueprint/BlueprintView.js')
-rw-r--r--public/assets/javascripts/ui/blueprint/BlueprintView.js18
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){