From: Tom Hughes Date: Wed, 28 Mar 2012 20:20:40 +0000 (+0100) Subject: Rename toggleData to showData X-Git-Tag: live~5654 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/50ca95ebdd1f1e85b5979c76f6bcd51c2654b49d?hp=bd14832cb5f0ec77905cd0b82c2c65d3c8e047af Rename toggleData to showData --- diff --git a/app/views/layouts/site.html.erb b/app/views/layouts/site.html.erb index 423a7b72c..65a8da7ec 100644 --- a/app/views/layouts/site.html.erb +++ b/app/views/layouts/site.html.erb @@ -52,7 +52,7 @@
  • <%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")), {:controller => 'site', :action => 'edit', :editor => editor}, {:id => editor + 'anchor', :class => "geolink llz object"} %>
  • <% end %> <% unless STATUS == :api_offline or STATUS == :database_offline %> -
  • <%= link_to_function(t('browse.start_rjs.data_layer_name'), 'toggleData()') %>
  • +
  • <%= link_to_function(t('browse.start_rjs.data_layer_name'), 'showData()') %>
  • <% end %> diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index fb8f4462e..0983c300c 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -188,7 +188,7 @@ end handleResize(); } - function toggleData() { + function showData() { $.ajax({ url: "<%= url_for :controller => :browse, :action => :start %>" }); }