Skip to content

Commit

Permalink
Fix a couple of wrong URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ptgolden committed Apr 3, 2015
1 parent 4f9fe38 commit 1c5dc81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/period_collection_add.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h2>Source</h2>

<div style="margin-top: 3em;" class="text-center well col-md-12">
<div class="pull-left">
<% var cancelHref = (action === 'Add') ? '#' : '#periodCollections/' + periodCollection.get('id') + '/' %>
<% var cancelHref = '#p/' + localStorage.currentBackend + (action === 'Add') ? '' : '/periodCollections/' + periodCollection.get('id') + '/' %>
<a class="btn btn-default" href="<%= cancelHref %>">Cancel</a>
<% if (!periodCollection.isNew()) { %>
<button class="btn btn-danger" id="js-delete-periodCollection">Delete collection</button>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/period_collection_show.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h2>Editorial note</h2>

<% if (editable) { %>
<div>
<a class="btn btn-primary" href="#periodCollections/<%= encodeURIComponent(periodCollection.id) %>/edit/">Edit period collection</a>
<a class="btn btn-primary" href="#p/<%= localStorage.currentBackend %>/periodCollections/<%= encodeURIComponent(periodCollection.id) %>/edit/">Edit period collection</a>
</div>
<% } %>

Expand Down

0 comments on commit 1c5dc81

Please sign in to comment.