Merge pull request #655 from metamaps/feature/fix-map-titles
Feature/fix map titles
This commit is contained in:
commit
0a62eb3299
2 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue