Merge pull request #655 from metamaps/feature/fix-map-titles

Feature/fix map titles
This commit is contained in:
Robert Best 2016-09-23 16:48:44 -04:00 committed by GitHub
commit 0a62eb3299
2 changed files with 2 additions and 2 deletions

View file

@ -76,6 +76,8 @@ const Map = {
var map = Active.Map
var mapper = Active.Mapper
document.title = map.get('name') + ' | Metamaps'
// add class to .wrapper for specifying whether you can edit the map
if (map.authorizeToEdit(mapper)) {
$('.wrapper').addClass('canEditMap')

View file

@ -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