Commit graph

2330 commits

Author SHA1 Message Date
Anton Khorev
e47187a8fb Merge branch 'pull/5206' 2024-09-13 12:18:17 +03:00
Tom Hughes
6d49bc6ebb Make select all checkbox on users list work with turbo 2024-09-12 19:10:26 +01:00
Tom Hughes
b70770f8dd Remove last traces of OPNVKarte layer 2024-09-12 18:29:55 +01:00
Anton Khorev
c661bbf7db Adapt richtext javascript to Turbo 2024-09-10 11:48:48 +03:00
Anton Khorev
a638220ff7 Remove unused reference to missing gps layer name 2024-09-01 01:17:12 +03:00
Tom Hughes
5f2a5cadcb Merge remote-tracking branch 'upstream/pull/4565' 2024-08-28 18:59:09 +01:00
Tom Hughes
cd36a388c2 Merge remote-tracking branch 'upstream/pull/5101' 2024-08-21 18:32:39 +01:00
Martin Raifer
9969bc5a24
Update to iD v2.30.1 2024-08-21 11:28:06 +02:00
Anton Khorev
1e9603c7b1 Remove endpoint/input values on disable 2024-08-21 11:43:26 +03:00
Anton Khorev
a088b136fb Read lat/lon attributes when generating context menu directions urls 2024-08-20 14:55:29 +03:00
Anton Khorev
4f3576e91b Save lat/lon to input data attributes 2024-08-20 14:55:29 +03:00
Anton Khorev
b4925d7b0d Limit coordinate precision in drag listener 2024-08-20 14:55:29 +03:00
Anton Khorev
5a1e3e5c67 Replace geocode request boolean property with request object 2024-08-19 20:30:51 +03:00
Anton Khorev
a8838b3727 Remove endpoint markers in disable method 2024-08-19 20:30:51 +03:00
Anton Khorev
64da05f8ff Install endpoint listeners using enable/disable methods 2024-08-19 20:30:51 +03:00
Anton Khorev
93a9f31bf0 Show/hide "Where is this?" when setting search value from directions 2024-08-19 20:05:48 +03:00
Tom Hughes
41b81bd393 Merge remote-tracking branch 'upstream/pull/5083' 2024-08-18 12:16:22 +01:00
Anton Khorev
1951ed2eb8 Change zoom precision function
This changes the number of fractional digits to log10(pixels / degrees) with pixels = 2**(8 + zoom) and degrees = 180.
2024-08-17 11:44:05 +03:00
Tom Hughes
9b2db63a95 Merge remote-tracking branch 'upstream/pull/5088' 2024-08-16 17:24:50 +01:00
Anton Khorev
80c43f51c2 Copy "From" endpoint value to search input when closing directions 2024-08-16 18:48:05 +03:00
Anton Khorev
a9b84ff4c6 Truncate long usernames in blocks tables 2024-08-16 14:41:02 +03:00
Anton Khorev
89a35fe11f Make getGeocode a private function 2024-08-16 08:57:39 +03:00
Anton Khorev
51cbbe6d5a Move empty value check out of endpoint.getGeocode 2024-08-16 08:54:23 +03:00
Anton Khorev
e624871eb4 Remove endpoint.hasGeocode state and related getRoute code
hasGeocode didn't actually indicated if an endpoint has a value acquired from a geocoder. It was set to true when at least one call to a geocoder finished successfully, including getting an empty result. getRoute doesn't need to know what calls were made, it only needs coordinates. It also doesn't get to decide when to fetch coordinates, this is done in drag/change callbacks.
2024-08-16 08:53:34 +03:00
Anton Khorev
ec6789920c Rename geocodeCallback to changeCallback, call it from latlon setValue
endpoint.setValue always calls changeCallback on its successful completion, with geocoding or without. This allows to decide when to call getRoute entirely from callbacks and event listeners.
2024-08-15 12:00:31 +03:00
Tom Hughes
953d8b4b59 Merge remote-tracking branch 'upstream/pull/5072' 2024-08-14 19:12:59 +01:00
Anton Khorev
8498d0d6a8 Switch to edit pane if rich text field validation fails
Allows the "Please fill out this field" message to be visible.
2024-08-14 16:43:57 +03:00
Anton Khorev
f1ca64ff84 Make setLatLng a private function 2024-08-14 05:11:56 +03:00
Anton Khorev
f65593651f Don't set input value from endpoint.setLatLng()
This input value computed from coordinates is not always used. endpoint.getGeocode() overwrites it immediately.
2024-08-14 05:11:56 +03:00
Anton Khorev
e0df084e57 Don't call endpoint.setLatLng() from outside of endpoint module 2024-08-14 05:11:56 +03:00
Anton Khorev
96ac0fb728 Use content box sizing instead of negative margins 2024-08-12 03:38:09 +03:00
Anton Khorev
3f4cba4434 Set layer button size in rems
Lets buttons become larger if font-only zoom is used. This should help with layer name labels not fitting.
2024-08-12 03:02:48 +03:00
Anton Khorev
415f497d89 Move endpoints code to its own module 2024-08-10 06:19:32 +03:00
Anton Khorev
567a9e5b23 Rename route request variable
It's not boolean, the comment was outdated.
2024-08-10 06:01:35 +03:00
Anton Khorev
d065f88b1a Remove references to global variables from endpoint drag listener
This causes visible input value updates even when the route is not recalculated. The upside is that it lets endpoints not know about the route and its update state.
2024-08-10 05:53:59 +03:00
Anton Khorev
3ae313fd1d Set min preview height when switching away from edit tab
Previously it was set when switching to a preview tab. Now that won't work correctly because we have one extra tab.
2024-08-08 07:23:49 +03:00
Anton Khorev
a9fa756878 Switch away from help tab when help sidebar becomes visible 2024-08-08 07:23:49 +03:00
Anton Khorev
8401cd0d14 Move help card between pane/sidebar depending on sidebar visibility 2024-08-08 07:23:49 +03:00
Anton Khorev
5e35448491 Use closest() instead of parents() when looking for richtext container 2024-08-08 06:07:42 +03:00
Anton Khorev
8103eb18ab Remove .richtext_preview css class 2024-08-08 05:56:06 +03:00
Anton Khorev
6ebf98255c Remove .richtext_content css class 2024-08-08 03:20:57 +03:00
Anton Khorev
69122afe78 Remove .richtext_dopreview css class 2024-08-08 03:16:50 +03:00
Anton Khorev
259437728e Switch between richtext edit/preview using Bootstrap tab panes 2024-08-03 04:52:41 +03:00
Anton Khorev
ef5352332e Convert richtext edit/preview buttons into tabs 2024-08-03 04:52:13 +03:00
Anton Khorev
2ba7eab67d Change richtext edit/preview buttons type to non-submit 2024-08-03 04:52:13 +03:00
Tom Hughes
c0cf556c05 Merge remote-tracking branch 'upstream/pull/5007' 2024-07-20 12:03:43 +01:00
Anton Khorev
80d7fe4cce Move auth provider icons to auth_providers subdirectory 2024-07-19 20:24:46 +03:00
Anton Khorev
010f0e1aaf Use Bootstrap collapse to toggle OpenID login form 2024-07-19 20:02:04 +03:00
Anton Khorev
0e3f0fbfd4 Set search input value to 'lat, lon' params if query param is missing 2024-07-17 16:43:52 +03:00
Tom Hughes
28726e5f11 Merge remote-tracking branch 'upstream/pull/4973' 2024-07-16 17:16:45 +01:00