Eliminate edit.js

This commit is contained in:
John Firebaugh 2013-10-03 16:56:48 -07:00
parent 054f934f27
commit 85e6bbde9b
4 changed files with 9 additions and 12 deletions

View file

@ -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

View file

@ -1,7 +0,0 @@
function maximiseMap() {
$("#content").addClass("maximised");
}
function minimiseMap() {
$("#content").removeClass("maximised");
}

View file

@ -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 %>

View file

@ -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 )