Skip to content
This repository
Browse code

Added new overlay to router and to listOverlays view

  • Loading branch information...
commit 168b8913c9a722a5af45afc59f5677a7e6a54242 1 parent 4da0fe6
jrasky authored
1  geocamTiePoint/static/geocamTiePoint/js/backbone/router.js
@@ -5,6 +5,7 @@ $(function($) {
5 5
         routes: {
6 6
             'overlays/': 'listOverlays',
7 7
             'overlay/:overlay_id': 'showOverlay',
  8
+            'overlay/new': 'newOverlay',
8 9
             '': 'root'
9 10
         },
10 11
 
1  geocamTiePoint/static/geocamTiePoint/js/backbone/views.js
@@ -38,6 +38,7 @@ $(function($) {
38 38
 
39 39
     app.views.ListOverlaysView = app.views.View.extend({
40 40
         template: '<h1>Choose an overlay:</h1>' +
  41
+            '<a href="#overlay/new">New Overlay</a>' +
41 42
             '{{debug}}' +
42 43
             '<ul>' +
43 44
             '{{#each overlays }}' +

0 notes on commit 168b891

Please sign in to comment.
Something went wrong with that request. Please try again.