Rename the ugly "id_iframe" to just plain "id"
This commit is contained in:
parent
1779347849
commit
6659fb9b33
4 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ class SiteController < ApplicationController
|
||||||
render :text => RichText.new(params[:format], params[:text]).to_html
|
render :text => RichText.new(params[:format], params[:text]).to_html
|
||||||
end
|
end
|
||||||
|
|
||||||
def id_iframe
|
def id
|
||||||
render "id_iframe", :layout => false
|
render "id", :layout => false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
hash = '#map=' + (coord.zoom || 17) + '/' + coord.lon + '/' + coord.lat
|
hash = '#map=' + (coord.zoom || 17) + '/' + coord.lon + '/' + coord.lat
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#id-embed').attr('src', 'id_iframe' + hash);
|
$('#id-embed').attr('src', '<%= id_url %>' + hash);
|
||||||
</script>
|
</script>
|
||||||
<% else %>
|
<% else %>
|
||||||
<script type="text/javascript">alert("<%= t 'site.edit.id_not_configured' %>")</script>
|
<script type="text/javascript">alert("<%= t 'site.edit.id_not_configured' %>")</script>
|
||||||
|
|
|
@ -131,7 +131,7 @@ OpenStreetMap::Application.routes.draw do
|
||||||
match '/logout' => 'user#logout', :via => [:get, :post]
|
match '/logout' => 'user#logout', :via => [:get, :post]
|
||||||
match '/offline' => 'site#offline', :via => :get
|
match '/offline' => 'site#offline', :via => :get
|
||||||
match '/key' => 'site#key', :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/new' => 'user#new', :via => :get
|
||||||
match '/user/terms' => 'user#terms', :via => [:get, :post]
|
match '/user/terms' => 'user#terms', :via => [:get, :post]
|
||||||
match '/user/save' => 'user#save', :via => :post
|
match '/user/save' => 'user#save', :via => :post
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue