[openstreetmap-website] Clean up user view JS (#118)

John Firebaugh notifications at github.com
Fri Oct 5 19:19:35 BST 2012



You can merge this Pull Request by running:

  git pull https://github.com/jfirebaugh/openstreetmap-website js

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/118

-- Commit Summary --

  * Remove unnecessary delete statement
  * Move user JS to page-specific script file
  * Use jQuery
  * Refactor to share friends/nearby variables
  * Introduce User#has_home?

-- File Changes --

M app/assets/javascripts/map.js.erb (1)
A app/assets/javascripts/user.js (43)
M app/models/user.rb (6)
D app/views/user/_map.html.erb (91)
M app/views/user/account.html.erb (19)
M app/views/user/view.html.erb (51)
M config/environments/production.rb (2)
M test/unit/user_test.rb (17)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/118.patch
https://github.com/openstreetmap/openstreetmap-website/pull/118.diff


---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/118
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20121005/2b9291c2/attachment.html>


More information about the rails-dev mailing list