Eliminate edit.js
This commit is contained in:
parent
054f934f27
commit
85e6bbde9b
4 changed files with 9 additions and 12 deletions
|
@ -116,6 +116,14 @@ function escapeHTML(string) {
|
|||
});
|
||||
}
|
||||
|
||||
function maximiseMap() {
|
||||
$("#content").addClass("maximised");
|
||||
}
|
||||
|
||||
function minimiseMap() {
|
||||
$("#content").removeClass("maximised");
|
||||
}
|
||||
|
||||
/*
|
||||
* Forms which have been cached by rails may have the wrong
|
||||
* authenticity token, so patch up any forms with the correct
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
function maximiseMap() {
|
||||
$("#content").addClass("maximised");
|
||||
}
|
||||
|
||||
function minimiseMap() {
|
||||
$("#content").removeClass("maximised");
|
||||
}
|
|
@ -8,10 +8,6 @@
|
|||
<p><%= raw t 'site.edit.not_public_description', :user_page => (link_to t('site.edit.user_page_link'), {:controller => 'user', :action => 'account', :display_name => @user.display_name, :anchor => 'public'}) %></p>
|
||||
<p><%= raw t 'site.edit.anon_edits', :link => link_to(t('site.edit.anon_edits_link_text'), t('site.edit.anon_edits_link')) %></p>
|
||||
<% else %>
|
||||
<% content_for :head do %>
|
||||
<%= javascript_include_tag "edit" %>
|
||||
<% end %>
|
||||
|
||||
<%= render :partial => preferred_editor %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -69,7 +69,7 @@ OpenStreetMap::Application.configure do
|
|||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
config.assets.precompile += %w( index.js edit.js browse.js changeset.js welcome.js )
|
||||
config.assets.precompile += %w( index.js browse.js changeset.js welcome.js )
|
||||
config.assets.precompile += %w( user.js diary_entry.js pngfix.js swfobject.js )
|
||||
config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css )
|
||||
config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue