make sure the mobile map title updates
This commit is contained in:
parent
aab3b781de
commit
d011552100
2 changed files with 4 additions and 0 deletions
|
@ -157,6 +157,8 @@ Metamaps.Backbone.Map = Backbone.Model.extend({
|
|||
if (isActiveMap) {
|
||||
Metamaps.Map.InfoBox.updateNameDescPerm(this.get('name'), this.get('desc'), this.get('permission'))
|
||||
this.updateMapWrapper()
|
||||
// mobile menu
|
||||
$('#header_content').html(this.get('name'))
|
||||
}
|
||||
},
|
||||
updateMapWrapper: function () {
|
||||
|
|
|
@ -552,6 +552,8 @@ Metamaps.Map.InfoBox = {
|
|||
var name = $(this).html()
|
||||
Metamaps.Active.Map.set('name', name)
|
||||
Metamaps.Active.Map.trigger('saved')
|
||||
// mobile menu
|
||||
$('#header_content').html(name)
|
||||
})
|
||||
|
||||
$('.mapInfoDesc .best_in_place_desc').unbind('ajax:success').bind('ajax:success', function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue