Rename the ugly "id_iframe" to just plain "id"

This commit is contained in:
Tom Hughes 2013-05-07 14:50:31 +01:00
parent 1779347849
commit 6659fb9b33
4 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ class SiteController < ApplicationController
render :text => RichText.new(params[:format], params[:text]).to_html
end
def id_iframe
render "id_iframe", :layout => false
def id
render "id", :layout => false
end
end

View file

@ -19,7 +19,7 @@
hash = '#map=' + (coord.zoom || 17) + '/' + coord.lon + '/' + coord.lat
}
$('#id-embed').attr('src', 'id_iframe' + hash);
$('#id-embed').attr('src', '<%= id_url %>' + hash);
</script>
<% else %>
<script type="text/javascript">alert("<%= t 'site.edit.id_not_configured' %>")</script>

View file

@ -131,7 +131,7 @@ OpenStreetMap::Application.routes.draw do
match '/logout' => 'user#logout', :via => [:get, :post]
match '/offline' => 'site#offline', :via => :get
match '/key' => 'site#key', :via => :get
match '/id_iframe' => 'site#id_iframe', :via => :get
match '/id' => 'site#id', :via => :get
match '/user/new' => 'user#new', :via => :get
match '/user/terms' => 'user#terms', :via => [:get, :post]
match '/user/save' => 'user#save', :via => :post