Commit graph

3653 commits

Author SHA1 Message Date
Tom Hughes
b65ad205d1 Position on notes correctly when a link to a comment is loaded
Links to note comments in the RSS feed have a #id on the end to
position on the right comment, so don't let those hash strings
stop the map from panning to the note.

Fixes #603.
2013-12-04 08:41:56 +00:00
John Firebaugh
bdbc1d663d Unconditionally unbind moveend event
Can't rely on checking location.pathname -- inside unload,
it already contains the new path. Fortunately, checking is
unnecessary.

Fixes TypeError: Cannot call method 'split' of undefined.
2013-12-04 00:31:20 +00:00
Tom Hughes
9544ab12b8 More refactoring of common code in object models
Tidy up code and extract generation of tag elements to the
common code in the ObjectMetadata module.
2013-12-04 00:29:48 +00:00
Simon Legner
413baecf6b Refactor generation of object metadata in API calls
Factor out duplicate from the object models into common code.
2013-12-04 00:09:52 +00:00
John Firebaugh
a6fb1ead5b Use a table for tags
Fixes #595
2013-12-03 22:33:07 +00:00
John Firebaugh
6053ed4124 Update history feed URL with bbox parameter
https://lists.openstreetmap.org/pipermail/dev/2013-December/027599.html
2013-12-03 20:12:10 +00:00
John Firebaugh
944f3ebb67 Remove map data size warning (#592) 2013-12-03 19:38:26 +00:00
John Firebaugh
07976676de Restore support for #layers=X with no map parameter
https://trac.openstreetmap.org/ticket/5056
2013-12-03 19:37:25 +00:00
Tom Hughes
ba4a3e3ce9 Remove debugging code 2013-12-03 19:04:15 +00:00
Tom Hughes
5642cf696e Fix UCL link 2013-12-03 18:16:22 +00:00
Tom Hughes
78f8e2a450 Throw an exception instead of logging to the console 2013-12-03 18:15:02 +00:00
Tom Hughes
e18c3fd58d Log failures to match a route for the initial path 2013-12-03 17:51:01 +00:00
Tom Hughes
b04339f699 Increase z-index for maximised content
Makes sure maximised content sits on top of the header.
2013-12-03 15:24:45 +00:00
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
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
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
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
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
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
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