Commit graph

3743 commits

Author SHA1 Message Date
Tom Hughes
b369d786db Add correct icon for caravan parks 2014-04-27 19:19:03 +01:00
Tom Hughes
d56b449bdb Remove unused CSS rules that refer to non-existent images 2014-04-27 19:18:56 +01:00
Tom Hughes
a5cef0cd80 Remove non-existent image from leaflet URL map 2014-04-27 19:18:45 +01:00
Tom Hughes
e85bcf9c4d Don't try and route to a note with no ID
Fixes #733
2014-04-26 00:13:49 +01:00
Tom Hughes
5e5c6b3a29 Add support for remote edit over https on port 8112 2014-04-01 19:17:15 +01:00
Tom Hughes
883a375d1a Ignore clicks on history entries if the mouse has moved
Ignore click events on history events if the mouse moves so that
drag selection can work. Fixes #581.
2014-03-31 11:25:40 +01:00
Tom Hughes
4cad1970fb Make sure the hash updates properly on browse pages
Rework the way the move listener is disabled during initial
positiong of pages to avoid accidentally leaving it disabled
for the first user move of the map in some cases.
2014-03-16 14:11:29 +00:00
Tom Hughes
24e22dde6e Don't call updateLayers if the new state has no layer config
Fixes #719
2014-03-13 21:36:33 +00:00
Tom Hughes
82ff8ef58d Remove unused (and bogus) code 2014-03-13 17:33:46 +00:00
Tom Hughes
b4a2b23025 Block submission of the export form when the area is too large 2014-03-13 17:33:06 +00:00
Tom Hughes
d79b286723 Fix more links to use new style #map links 2014-03-13 16:02:50 +00:00
Tom Hughes
4b3d4782ce Remove unused file 2014-03-13 16:01:17 +00:00
Tom Hughes
9b35270d0b Update map state when following a client side route 2014-03-13 13:37:45 +00:00
Tom Hughes
07082c35e6 Fix link 2014-03-13 13:37:39 +00:00
Tom Hughes
54890300a4 Generate a new style links for node locations in the data browser 2014-03-13 13:19:50 +00:00
Tom Hughes
8c82be0537 Make the search form a GET form with no extra fields
We only accept GET requests for the search, and although the form is
never normally submitted directly some browsers offer an option to
create a bookmark from a form, so make that work.
2014-03-07 19:18:24 +00:00
Tom Hughes
0c80a486b4 Remove an unused method 2014-03-05 22:54:50 +00:00
Tom Hughes
0de7fdb4df Add more tests for BrowseHelper 2014-03-01 16:02:06 +00:00
João G. Packer
18734786a1 Fixed wikipedia link reference to specific sections
When creating  a wikipedia link from a tag, the function
is (correctly) appending "?userlang=#{I18N.lang}" to the URL,
but doing this breaks the reference to a specific section
of a wikipedia article (if there is any).

For example, if the tag is "wikipedia=Article#Section", the function
would create a link to "../Article#Section?uselang=xx", and then the
browser wouldn't be able to correctly find the section. The correct
link result should be "../Article?uselang=xx#Section".

This commit fixes this by verifying if there is a reference to a
specific section of the article, and then putting "?uselang=#{I18N.lang}"
between the article's name and the section name.
2014-03-01 00:26:37 +00:00
Tom Hughes
8c9992f695 Apply zoomPrecision to location cookie 2014-02-28 00:26:34 +00:00
Tom Hughes
1f22b625a0 Move cookieContent to OSM.locationCookie 2014-02-28 00:10:55 +00:00
Tom Hughes
66039dedb0 Move zoomPrecision function to the OSM namespace 2014-02-27 18:15:54 +00:00
Tom Hughes
28b8863627 Remove unused (and non-functioning) code 2014-02-26 18:53:25 +00:00
Tom Hughes
1c46fb5891 Remove unused session model 2014-02-26 00:13:47 +00:00
Tom Hughes
d1313a89d6 Uniqify lists of containing ways/relations
Fixes #707
2014-02-23 00:08:51 +00:00
John Firebaugh
41b1bd4a70 Fix updateLinks({lat: 0, lon: 0}, ...)
Fixes openstreetmap/iD#2130
2014-02-18 17:20:52 -08:00
Tom Hughes
c02fa94d5e Fixed missing translation 2014-02-17 20:10:29 +00:00
Tom Hughes
f9ae6d252f Drop the slim layout
The slim layout is not really needed since the redesign as the
pages it was used for in the OAuth flow now have less chrome and
work fine on small screens with the normal layout.

Fixes #689
2014-02-16 16:03:00 +00:00
Tom Hughes
47841829d8 Improve redirection of shortlinks
If a shortlink includes an object reference then redirect to a new
style browse URL for that object.

Fixes #702
2014-02-15 12:42:52 +00:00
Tom Hughes
b947358134 Include selected layer in short links
Fixes #703
2014-02-15 12:05:30 +00:00
Tom Hughes
ee3e5d56d2 Remove https load test 2014-02-11 08:23:55 +00:00
Tom Hughes
e36aa53f49 Update to paperclip 4.x and add content type validation 2014-02-10 00:34:23 +00:00
Tom Hughes
a7f9ca32b7 Fix some mixed content issues 2014-02-08 17:43:34 +00:00
Tom Hughes
e5ff267073 Avoid using one translation as the key for a second
Translation keys need to be fixed, so we can't use the result of
one lookup to derive the key for another...

Fixes #697
2014-02-06 09:14:06 +00:00
Tom Hughes
ef448ea494 Boost https tile traffic to 20% 2014-02-05 19:43:44 +00:00
Tom Hughes
6b843cc158 Send 5% of users tiles over https as a test 2014-02-05 18:38:36 +00:00
Tom Hughes
25b93471c1 Preserve message details over validation errors
If a validation error occurs while saving a message then make
sure the values are preserved in the new form.
2014-02-04 22:31:44 +00:00
Tom Hughes
339ac9d239 Pass preferred language to geonames API calls 2014-01-27 21:14:17 +00:00
Tom Hughes
ccebb796ab Use api.geonames.org for reverse searches 2014-01-27 21:14:17 +00:00
Marco Antonio Frias Butrón
b01bda9238 Reserve enough space for the buttons at the bottom of the message list 2014-01-19 17:15:05 +00:00
Simon Poole
a24f52dec7 Add a landing page for "fix the map / report a problem" links 2014-01-19 13:48:27 +00:00
Toby Murray
c78853a97e Changing the note search limit from 9999 to 10000
The documentation says the limit is 10000 which seems like a
nicer round number anyway.
2014-01-19 13:40:11 +00:00
Tom Hughes
42b329ed82 Replace the country table with a static XML countries file
Storing the countries in the database is overkill, so just use a
copy of the geonames countryInfo data that is loaded into a hash
the first time it is used.
2014-01-17 19:25:58 +00:00
Tom Hughes
933b091330 Highlight erroneous fields by adding a class to them
The default rails scheme for highlighting errors is to wrap the
field in a div, but that changes the structure of the page and can
change the meaning of CSS rules applied to the fields.

As an alternative we now apply a class to the fields, and use that
in the CSS to apply a highlight.
2014-01-15 21:41:16 +00:00
Tom Hughes
45618726ef Reenable the note search API
Add a postgress freetext index on the note comments, and enable
note searching using freetext matching.
2014-01-15 19:58:58 +00:00
Tom Hughes
a4561fe89b Preserve aspect ratio when scaling a user thumbnail
Fixes #675
2014-01-12 20:32:33 +00:00
Tom Hughes
67dbde0fde Set empty alt text on user images
This stops a stupidly long URL being shown if something goes wrong
with the gravatar redirect back to the default image.
2014-01-12 19:28:01 +00:00
Tom Hughes
1e2b99a75b Disable notes search until it can be made scalable 2014-01-09 08:41:59 +00:00
Tom Hughes
41d02225d2 Add details for Finland to copyright page 2013-12-19 17:30:15 +00:00
Tom Hughes
fd0ed54b16 Add a close icon to the feature warning panel
Fixes #660
2013-12-18 00:14:29 +00:00