From 50ca95ebdd1f1e85b5979c76f6bcd51c2654b49d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 28 Mar 2012 21:20:40 +0100 Subject: [PATCH] Rename toggleData to showData --- app/views/layouts/site.html.erb | 2 +- app/views/site/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %>" }); } -- 2.43.2