Commit graph

1012 commits

Author SHA1 Message Date
Tom Hughes
9e25f5563d Drop click handler for changeset entries in the history sidebar
The default click handler in index.js handles them fine, and as this
one was not calling preventDefault both were actually firing in some
browsers, causing the changeset to be loaded twice and two history
entries to be created.
2013-12-02 10:17:53 +00:00
Tom Hughes
63617dabb1 Fix javascript eror redirecting to new notes 2013-12-01 22:41:30 +00:00
Tom Hughes
d5a765588f Fix URL updating in Potlatch 1
Potlatch 1 has hard coded calls to updatelinks, so rename the
updatelinks function to updateLinks and add an updatelinks function
using the old style argument list for Potlatch 1 to call.
2013-12-01 22:37:04 +00:00
Tom Hughes
a30a29f41a Fix stripping of trailing slash 2013-12-01 22:30:34 +00:00
Tom Hughes
96babc10b0 Strip any trailing slash from the initial location 2013-12-01 21:47:55 +00:00
Richard Fairhurst
640ff57465 Add 'x' to close welcome box; remember preference 2013-12-01 21:36:25 +00:00
Tom Hughes
248d0b863c Force the X-Page-Title value to be treated as UTF-8
This is basically a black magic hack to get javascript to treat
a string as UTF-8 and decode it to the correct form.

http://monsur.hossa.in/2012/07/20/utf-8-in-javascript.html
2013-12-01 20:31:48 +00:00
Tom Hughes
3b6580297f Rename changed translation to avoid test failures 2013-12-01 09:11:59 +00:00
Tom Hughes
ec8a601309 Test for the map argument correctly 2013-11-30 14:18:08 +00:00
Tom Hughes
a2b9f593f5 Don't throw an exception if the hash doesn't contain a map argument 2013-11-30 13:20:31 +00:00
Tom Hughes
be088602fb Revert 39468944 and fix osmlab#91 without loosing the editor choice 2013-11-29 15:33:09 +00:00
Tom Hughes
37baed28b1 Pass the correct ID when switching to a node/way/relation view 2013-11-29 09:53:16 +00:00
Tom Hughes
223d5fd132 Stop browse routes matching user URLs 2013-11-29 00:05:25 +00:00
Tom Hughes
3cd5f45e08 Simplify browse routes and make routes more consistent
This gets rid of the /browse/ prefix and uses /history consistently
for all routes that show a list of changesets.
2013-11-28 00:14:07 +00:00
John Firebaugh
6b236ec95b Fix feed link for pushState loaded history page 2013-11-25 15:47:42 -08:00
John Firebaugh
3946894492 Fix accumulation of parameters in edit link 2013-11-25 13:49:47 -08:00
John Firebaugh
ca64b39e0d Make main page flash messages visible 2013-11-25 13:20:59 -08:00
Tom Hughes
8b84f11a45 There are four methods, not three 2013-11-25 21:13:59 +00:00
John Firebaugh
415f6a42c7 Add explanatory comment 2013-11-25 13:12:04 -08:00
John Firebaugh
0dbd18e2bb Document/clarify OSM.Router use 2013-11-25 13:10:07 -08:00
Tom Hughes
560763d224 Revert "Remove redundant code"
This reverts commit 28530085fb.
2013-11-25 20:41:33 +00:00
Tom Hughes
8482a525c0 Remove unneessary return added accidentally 2013-11-25 19:14:52 +00:00
Tom Hughes
87bf5e73d4 Fix "in bounds" test in updateData
Only call getData if the new bounds are not contained within the
old bounds, and only update the bounds after a successful load so
that the don't change if we error out.
2013-11-25 19:13:01 +00:00
Tom Hughes
114f722860 Don't wait for a timeout when the browser doesn't support geolocation
If the browser doesn't support geolocation then we might as well just
start manual edit mode straight away rather than waiting four seconds.
2013-11-24 16:46:58 +00:00
Tom Hughes
47385464cd Remove redundant code
Attempts to view an object are now redirected to the browse pages
so we will never see a node/way/relation parameter here.
2013-11-24 16:38:53 +00:00
Tom Hughes
65d5f3a1db Remove code to fixup authenticity tokens on page load
We don't cache anything with forms in now, so the code is no longer
needed and the comment was now misleading as extra code has been added
to the ready callback.
2013-11-24 12:13:02 +00:00
John Firebaugh
fbd5a88b24 Use machine-readable lat/lon format 2013-11-21 11:31:58 -08:00
Aaron Lidman
86ae401aac Nominatim results zoom to the result location 2013-11-20 12:37:57 -08:00
Aaron Lidman
5384ee236c Fixed individual note marker implementation, closes #78
- Removed forced noteLayer view, now respects current selection just
like an other browse page.
- Made marker replacement it’s own thing, seperate from noteLayer.
- Reduced opacity on noteLayer notes, it makes the selected note stand
out more
2013-11-20 11:43:39 -08:00
John Firebaugh
d0de36b607 Refine changeset browse behavior
The general history view shows changesets in the current view
and updates when you move the map. The view for an individual
user, nearby users, or friends zooms the map to the extent of
the results, and doesn't change when you move the map.
2013-11-19 12:10:14 -08:00
John Firebaugh
bd21a1f7ff Eliminate loading flash for welcome overlay 2013-11-19 11:18:11 -08:00
Aaron Lidman
c0b0829901 Fixed export filter 2013-11-18 18:45:06 -08:00
Aaron Lidman
5a330c7b9d Improvements to changeset bbox styling 2013-11-18 17:29:55 -08:00
Aaron Lidman
8fe5dbb92c Wrap bounds of changeset request, closes #72 2013-11-18 16:41:25 -08:00
Aaron Lidman
653f7c0d74 Increase sidebar width, back to 350px 2013-11-18 16:24:52 -08:00
Aaron Lidman
104ba9c57a Fix new note wrapping 2013-11-18 11:43:48 -08:00
Aaron Lidman
b7d7781c5d Fix welcome page redirect, closed #70 2013-11-18 09:56:03 -08:00
John Firebaugh
2b4f8e92c9 Merge branch 'master' into redesign
Conflicts:
	app/controllers/browse_controller.rb
	app/views/layouts/_head.html.erb
	config/environments/production.rb
	config/routes.rb
2013-11-15 16:47:49 -08:00
Aaron Lidman
e62bac06ed Improved noteLayer and dataLayer availability, closes #65 2013-11-15 15:06:44 -08:00
Aaron Lidman
d3e99bc8bd Hide control tooltips on #map-ui expansion, closes #55 2013-11-15 11:26:36 -08:00
John Firebaugh
d920d94f69 Revert "Eliminate HTML5 elements"
This led to a huge mess of conflicting CSS rule priorities.

This reverts commit 9fc8bc9368.
2013-11-15 10:37:10 -08:00
Aaron Lidman
518a51712c Obey the hash 2013-11-14 18:16:23 -08:00
Aaron Lidman
fec9dc84c0 No hash on browse pages, closes #35 2013-11-14 17:41:20 -08:00
John Firebaugh
e9c6e57bcc Eliminate HTML5 elements
IE8, *sigh*
2013-11-14 15:39:44 -08:00
Aaron Lidman
111dec6853 Fixed border consistency 2013-11-14 12:42:02 -08:00
John Firebaugh
c9600ea323 Expose more router functions 2013-11-14 12:26:58 -08:00
John Firebaugh
22408c3e5b Simplify 2013-11-14 12:22:20 -08:00
John Firebaugh
a62141ce7f Drop pngfix.js
Don't need to support IE 6 anymore (<0.2% of users).
2013-11-14 19:32:24 +00:00
Aaron Lidman
2ce7060757 Fixed note creation halo to update on dragging 2013-11-14 09:57:48 -08:00
Aaron Lidman
fd8f35309d Fix disabled overlay layers translations 2013-11-14 09:12:39 -08:00