Update index.js

This commit is contained in:
Robert Best 2016-09-23 15:47:37 -04:00 committed by GitHub
parent b8ae2c4b6a
commit f41ece6f1c

View file

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