Skip to content

Commit

Permalink
test page
Browse files Browse the repository at this point in the history
  • Loading branch information
diki committed Feb 27, 2013
1 parent 399a33e commit a29c7cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
18 changes: 8 additions & 10 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<html>


<head>
<script type="text/javascript" src="vendor/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="vendor/underscore-min.js"></script>
<script type="text/javascript" src="vendor/backbone-min.js"></script>
</head>
<body>

<script>







</script>
<h1>Syndicator test page</h1>

<!-- models -->
<script type="text/javascript" src="models/TodoModel.js"></script>
</body>

</html>
5 changes: 4 additions & 1 deletion public/models/TodoModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
var TodoModel = Backbone.Model.extend({

url: "/api/todo",
id: 67,
url: function(){
return "/api/todos/" + this.id || "";
},

defaults : {
title : "title"
Expand Down

0 comments on commit a29c7cc

Please sign in to comment.