<div id="permalink">
<a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a><br/>
<a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a><br/>
- <a href="javascript:void()" id="ReportBug">Report a problem</a>
+ <a href="javascript:void();" id="ReportBug" class="reportProblem">Report a problem</a>
</div>
<div id="attribution">
OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
- function createBugCallBack() {
- map.osbControl.deactivate();
- document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "default";
- }
+ <% if @user %>
+ var loginName = "<%= @user.display_name %>"
+ <% end %>
function mapInit(){
map = createMap("map");
lBug.addEventListener('click',function (e) {
map.osbControl.activate(); document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "crosshair" },false);
+ map.events.register("zoomend",map,function () { var zoom = map.getZoom(); var lBug = document.getElementById('ReportBug')
+ if (zoom > 11) { lBug.style.visibility = 'visible';} else {lBug.style.visibility = "hidden";}});
+
<% end %>