Render map properly when changing between setting tabs
This commit is contained in:
@@ -81,6 +81,7 @@
|
|||||||
//= require managers
|
//= require managers
|
||||||
//= require globalize
|
//= require globalize
|
||||||
//= require send_admin_notification_alert
|
//= require send_admin_notification_alert
|
||||||
|
//= require settings
|
||||||
|
|
||||||
var initialize_modules = function() {
|
var initialize_modules = function() {
|
||||||
App.Comments.initialize();
|
App.Comments.initialize();
|
||||||
@@ -127,6 +128,7 @@ var initialize_modules = function() {
|
|||||||
App.Managers.initialize();
|
App.Managers.initialize();
|
||||||
App.Globalize.initialize();
|
App.Globalize.initialize();
|
||||||
App.SendAdminNotificationAlert.initialize();
|
App.SendAdminNotificationAlert.initialize();
|
||||||
|
App.Settings.initialize();
|
||||||
};
|
};
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|||||||
10
app/assets/javascripts/settings.js.coffee
Normal file
10
app/assets/javascripts/settings.js.coffee
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
App.Settings =
|
||||||
|
|
||||||
|
initialize: ->
|
||||||
|
|
||||||
|
$("#settings-tabs").on "change.zf.tabs", ->
|
||||||
|
if $("#tab-map-configuration:visible").length
|
||||||
|
map_container = L.DomUtil.get "admin-map"
|
||||||
|
unless map_container is null
|
||||||
|
map_container._leaflet_id = null
|
||||||
|
App.Map.initialize()
|
||||||
Reference in New Issue
Block a user