Author: kake
Date: 2012-05-05 13:20:04 +0100 (Sat, 05 May 2012)
New Revision: 1387
Modified:
trunk/templates/map_index_leaflet.tt
Log:
Added message in place of map for people without JavaScript.
Modified: trunk/templates/map_index_leaflet.tt
===================================================================
--- trunk/templates/map_index_leaflet.tt 2012-05-05 12:14:17 UTC (rev 1386)
+++ trunk/templates/map_index_leaflet.tt 2012-05-05 12:20:04 UTC (rev 1387)
@@ -56,8 +56,15 @@
<p class="no_nodes_on_map">No pages with geodata - nothing to
display
on map!</p>
[% ELSE %]
+ <span id="map_index_no_js">
+ <p>Sorry! JavaScript is required to view the map - you may prefer to
+ <a href="[% feed_base %]">view the results as a list</a>
instead.</p>
+ </span>
+
<script type="text/javascript">
+ $('#map_index_no_js').hide();
+
map_div_id = 'map_index_canvas';
centre_lat = [% centre_lat %];
centre_long = [% centre_long %];
Show replies by date