Permalink
Browse files

Fixing urls

  • Loading branch information...
1 parent 156874e commit 4d6c03ce0e84145572883c67077353439fa334ff @thedjpetersen committed Sep 25, 2012
Showing with 7 additions and 7 deletions.
  1. +2 −2 assets/js/models.js
  2. +5 −5 templates.html
View
@@ -30,14 +30,14 @@ var Notes = Backbone.Collection.extend({
if(parent_id === "root"){
parents.unshift({
name: 'Home',
- url: '/#!/'
+ url: '#!/'
});
}
if(parent) {
parent_id = parent.get('parent_id');
parents.unshift({
name: parent.get('name'),
- url: '/#!/notes/' + parent.get('id')
+ url: '#!/notes/' + parent.get('id')
});
} else {
parent_id = parent;
View
@@ -49,8 +49,8 @@ <h3 class="category_title">{{model.name}}</h3>
{{/each}}
<div class="span12">
{{#if parents.length}}
- <a href="/#!/notes/{{model.id}}/edit" class="btn">Edit Category</a>
- <a href="/#!/" class="btn btn-danger delete">Delete Category</a>
+ <a href="#!/notes/{{model.id}}/edit" class="btn">Edit Category</a>
+ <a href="#!/" class="btn btn-danger delete">Delete Category</a>
{{/if}}
</div>
</script>
@@ -76,9 +76,9 @@ <h3 class="category_title">{{model.name}}</h3>
{{{model.content}}}
</div>
<div class="span12">
- <a href="/#!/notes/{{model.id}}/edit" class="btn">Edit Note</a>
- <a href="/#!/new_note/{{model.id}}" class="btn btn-primary">Add Child</a>
- <a href="/#!/" class="btn btn-danger delete">Delete Note</a>
+ <a href="#!/notes/{{model.id}}/edit" class="btn">Edit Note</a>
+ <a href="#!/new_note/{{model.id}}" class="btn btn-primary">Add Child</a>
+ <a href="#!/" class="btn btn-danger delete">Delete Note</a>
</div>
{{#if children.length}}
<div class="span12">

0 comments on commit 4d6c03c

Please sign in to comment.