make sure the mobile map title updates

This commit is contained in:
Connor Turland 2016-08-17 12:16:36 +00:00
parent aab3b781de
commit d011552100
2 changed files with 4 additions and 0 deletions

View file

@ -157,6 +157,8 @@ Metamaps.Backbone.Map = Backbone.Model.extend({
if (isActiveMap) { if (isActiveMap) {
Metamaps.Map.InfoBox.updateNameDescPerm(this.get('name'), this.get('desc'), this.get('permission')) Metamaps.Map.InfoBox.updateNameDescPerm(this.get('name'), this.get('desc'), this.get('permission'))
this.updateMapWrapper() this.updateMapWrapper()
// mobile menu
$('#header_content').html(this.get('name'))
} }
}, },
updateMapWrapper: function () { updateMapWrapper: function () {

View file

@ -552,6 +552,8 @@ Metamaps.Map.InfoBox = {
var name = $(this).html() var name = $(this).html()
Metamaps.Active.Map.set('name', name) Metamaps.Active.Map.set('name', name)
Metamaps.Active.Map.trigger('saved') Metamaps.Active.Map.trigger('saved')
// mobile menu
$('#header_content').html(name)
}) })
$('.mapInfoDesc .best_in_place_desc').unbind('ajax:success').bind('ajax:success', function () { $('.mapInfoDesc .best_in_place_desc').unbind('ajax:success').bind('ajax:success', function () {