diff static/add.js @ 4:409da49c148d

partway though add Ignore-this: 330d1f3393bb91ca56267d2138e3bb22
author drewp@bigasterisk.com
date Sun, 17 Feb 2013 21:12:53 -0800
parents
children f8c4c7ce5f4a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/static/add.js	Sun Feb 17 21:12:53 2013 -0800
@@ -0,0 +1,16 @@
+var model = {
+    href: ko.observable("starter"),
+};
+
+ko.computed(function() {
+    if (model.href() == "") {
+        return;
+    }
+
+    $.getJSON("proposal", {uri: model.href()}, function (data) {
+
+    });
+    
+});
+
+ko.applyBindings(model);