Commit graph

6273 commits

Author SHA1 Message Date
Tom Hughes
ecf3bdf2af Remove unused code for handling search results in Potlatch 2013-12-03 15:14:59 +00:00
Tom Hughes
50fafa14f8 Improve zoom level selection when invoking Potlatch on an object
When invoking Potlatch on a node/way/relation object we should
normally have valid location information in the map parameters, so
use any zoom which is there if possible, otherwise fall back to an
object type specific default value.

Fixes #605.
2013-12-03 15:06:34 +00:00
Tom Hughes
6362f60a54 Display the size warning when the data layer is disabled 2013-12-03 09:17:02 +00:00
John Firebaugh
cc57c65083 Auto-uncheck the data and notes layers at low zoom
Reenable them when returning to high zoom in the
same session.

Fixes #592
2013-12-03 08:55:15 +00:00
Tom Hughes
77b4ff6ceb Use jQuery Simulate to simulate click events 2013-12-03 00:29:23 +00:00
Tom Hughes
691352136a Merge remote-tracking branch 'jfirebaugh/562' 2013-12-03 00:23:16 +00:00
John Firebaugh
528d4a040e Improve click behavior on changeset entries
On Chrome, this lets clicks with modifier keys anywhere
on the changeset entry work as expected. On other browsers,
modifier keys still only work on the link itself.
2013-12-02 16:13:58 -08:00
John Firebaugh
c32fec1768 Align "Way" in relation member list
Fixes #590
2013-12-03 00:05:43 +00:00
John Firebaugh
880d53d62c Allow word-breaks in long keys/values
Fixes #561
2013-12-03 00:03:58 +00:00
Tom Hughes
fc891d9caa Generate valid URLs for search results with no object attached 2013-12-02 22:25:46 +00:00
John Firebaugh
10c8be0cb9 Restore correct link behavior with modifier keys
Fixes #562
2013-12-02 14:25:45 -08:00
John Firebaugh
95f1069552 Fix application error on non-feature search results
Fixes #560
2013-12-02 14:08:56 -08:00
Tom Hughes
031afed7aa Merge remote-tracking branch 'jfirebaugh/legacy-params' 2013-12-02 20:29:34 +00:00
Tom Hughes
11d8dc59d4 Document need for a Javascript runtime 2013-12-02 20:24:11 +00:00
Tom Hughes
16a72d93de Don't show "Load More" if we found less than 20 changesets 2013-12-02 19:39:56 +00:00
John Firebaugh
d95361bcb9 Support legacy bbox param on /history as well
Fixes #586
2013-12-02 11:38:54 -08:00
John Firebaugh
69fdcfd163 Restore legacy bbox/min/max params support
https://trac.openstreetmap.org/ticket/5050
https://trac.openstreetmap.org/ticket/5051
2013-12-02 11:38:54 -08:00
Tom Hughes
f3f31d3bea Remove unused strings 2013-12-02 19:28:51 +00:00
Tom Hughes
be931d0955 Restore click handler for changeset entries
The default click handler only handle the, not the rest of the
entry, so retore the handler but add an e.preventDefault() call
to stop the second handler running.
2013-12-02 18:49:56 +00:00
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
f42af6d47e Removed bogus translation 2013-12-02 09:10:10 +00:00
Siebrand Mazeland
1999e94186 Localisation updates from https://translatewiki.net. 2013-12-02 08:40:42 +00:00
Tom Hughes
f53ae66966 Prevent wrapping of dates in message lists 2013-12-01 23:00:41 +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
aff0583a34 Drop monkey patch now we're using option style redirects
Option style redirects escape path parameters correctly, so we
can drop out monkey patch.
2013-12-01 20:54:52 +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
61bb31ebdd Preserve the bounding box when redirecting history URLs
Using the options style for the redirect seems to cause parameters
to be preserved, which the path style of redirect does not.
2013-12-01 19:59:57 +00:00
Tom Hughes
3b6580297f Rename changed translation to avoid test failures 2013-12-01 09:11:59 +00:00
Siebrand Mazeland
73341cfefd Localisation updates from https://translatewiki.net. 2013-11-30 18:36:16 +00:00
Tom Hughes
49a4efcfa0 Don't offer iD on IE11 2013-11-30 17:53:42 +00:00
RM87
61fc15aee1 Remove spurious < character as reported in #508 2013-11-30 16:09:47 +00:00
Tom Hughes
28a19f5f13 Load gravatar images over https on https pages 2013-11-30 15:38:11 +00:00
Tom Hughes
a36f3a9307 Add margin space below lists on non-map content pages 2013-11-30 14:41:39 +00:00
Tom Hughes
ec8a601309 Test for the map argument correctly 2013-11-30 14:18:08 +00:00
Tom Hughes
e73a770d81 Remove monkey patch which has been merged upstream in rails 4 2013-11-30 14:02:49 +00:00
Tom Hughes
309831a619 Monkey patch escaping in redirect routes
The correct method of escaping depends on whether the parameter
is being substituted in the path or the query, but all our ones
are substitued in the path so use URI.escape instead of the
standard Rack::Utils.escape which does query escaping.

https://github.com/rails/rails/issues/13110
2013-11-30 13:53:48 +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
315d1dab54 Redirect /?query= to /search?query= 2013-11-30 12:38:44 +00:00
Tom Hughes
82b6e05dc4 Update the OpenSearch definition for URL changes 2013-11-30 12:35:01 +00:00
Tom Hughes
a9f4549327 Tidy up the OAuth authorization screens
Make sure all messages are translatable, separate errors from
user initiated denial of authorization.
2013-11-30 12:25:22 +00:00
Tom Hughes
bfd11bf79a Change "Copyright & License" to "Copyright" and move it left 2013-11-30 10:51:43 +00:00
Paul Norman
a768e7111c Restore Copyright & License link
The copyright and license is an important part of OpenStreetMap.
This restores the copyright & license link to the menu, placing
it in the top-right with the other pages which do not display a map.

Fixes #548

Fixes comments in https://github.com/openstreetmap/openstreetmap-website/pull/498#issuecomment-26741518
2013-11-30 10:36:14 +00:00
Tom Hughes
d375caf7a3 Update to CPK 6.0.1 and drop monkey patch 2013-11-30 10:28:41 +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