]> git.openstreetmap.org Git - rails.git/commit
Make translated map layer names work
authorTom Hughes <tom@compton.nu>
Fri, 24 May 2013 23:21:19 +0000 (00:21 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 24 May 2013 23:21:19 +0000 (00:21 +0100)
commitd1c900901939c1d168ba31f40ea688ff41521dfa
tree5ba0ab21beba16382714e75bba004fba0165dc8b
parentfa95768ae3a4d57c779da81be9b9a905a4fbc39b
Make translated map layer names work

Delay initialising the layers array until the first map is created
so that we can be sure that I18n.locale has been initialised.
app/assets/javascripts/map.js.erb