From b8ae2c4b6a9c7b358cf1e8510aad26054c68a02b Mon Sep 17 00:00:00 2001 From: Robert Best Date: Fri, 23 Sep 2016 15:45:11 -0400 Subject: [PATCH 1/3] Update Router.js --- frontend/src/Metamaps/Router.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/Metamaps/Router.js b/frontend/src/Metamaps/Router.js index c5f1c9a7..073c1d1b 100644 --- a/frontend/src/Metamaps/Router.js +++ b/frontend/src/Metamaps/Router.js @@ -157,8 +157,6 @@ const _Router = Backbone.Router.extend({ maps: function (id) { clearTimeout(this.timeoutId) - document.title = 'Map ' + id + ' | Metamaps' - this.currentSection = 'map' this.currentPage = id From f41ece6f1c5a7e59c560518a1b57d81a31df0398 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Fri, 23 Sep 2016 15:47:37 -0400 Subject: [PATCH 2/3] Update index.js --- frontend/src/Metamaps/Map/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/Metamaps/Map/index.js b/frontend/src/Metamaps/Map/index.js index 3dd1c531..5de9e061 100644 --- a/frontend/src/Metamaps/Map/index.js +++ b/frontend/src/Metamaps/Map/index.js @@ -76,6 +76,8 @@ const Map = { var map = Active.Map var mapper = Active.Mapper + document.title = map.attributes.name + ' | Metamaps' + // add class to .wrapper for specifying whether you can edit the map if (map.authorizeToEdit(mapper)) { $('.wrapper').addClass('canEditMap') From afa0cc96b9eea6b717ab21e2dd102aa8f400e477 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Fri, 23 Sep 2016 16:06:28 -0400 Subject: [PATCH 3/3] Update index.js --- frontend/src/Metamaps/Map/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Metamaps/Map/index.js b/frontend/src/Metamaps/Map/index.js index 5de9e061..944a387b 100644 --- a/frontend/src/Metamaps/Map/index.js +++ b/frontend/src/Metamaps/Map/index.js @@ -76,7 +76,7 @@ const Map = { var map = Active.Map var mapper = Active.Mapper - document.title = map.attributes.name + ' | Metamaps' + document.title = map.get('name') + ' | Metamaps' // add class to .wrapper for specifying whether you can edit the map if (map.authorizeToEdit(mapper)) {