Commit graph

27 commits

Author SHA1 Message Date
Anton Khorev
4e9483e5eb Use location instead of window.location and document.location 2025-03-01 12:01:31 +03:00
Tom Hughes
c50e4f50c4 Merge remote-tracking branch 'upstream/pull/5685' 2025-02-16 13:18:14 +00:00
Tom Hughes
c47cb299a8 Replace uses of var with let or const as appropriate 2025-02-16 11:14:13 +00:00
Martin Raifer
793757a6ff
don't pan map wen closing/reopening/commenting a note, fixes #648 2025-02-16 10:59:34 +01:00
Martin Raifer
a3737b74ba
don't re-pan the map when selecting another note that is already on the screen
fixes a regression in #5679
2025-02-16 10:45:49 +01:00
Marwin Hochfelsner
3c4da558b0 Move OAuth requests to fetch 2025-02-16 08:57:04 +01:00
Martin Raifer
b14965e4b2
fix map panning to objects when url hash is not empty but has no map location, fixes #865 2025-02-15 16:54:24 +01:00
Anton Khorev
25e4a80760 Get note text only from textarea within left sidebar 2024-12-19 05:22:54 +03:00
Tom Hughes
8a020b3ec7 Don't send comment text when reopening a note
Fixes #5359.
2024-11-29 17:41:00 +00:00
Anton Khorev
aca9bd205e Add subscribe/unsubscribe buttons to note pages 2024-11-22 00:55:41 +03:00
Anton Khorev
34e0620463 Remove callback from initialize() in note js controller 2024-10-25 18:48:36 +03:00
Anton Khorev
060494b09c Use button elements that allow word wrap for note controls 2024-06-03 13:40:11 +03:00
Anton Khorev
d1b58fb20e Show blocked api response when reopening notes 2024-01-17 02:15:14 +03:00
Anton Khorev
3ea2c30c58 Show blocked api response when commenting notes 2024-01-17 02:15:14 +03:00
Andy Allan
9bb8dd739a Use data attributes to pass alternative button labels
This allows the text to be defined in the html partials, instead
of looking up the i18n via javascript.
2023-02-01 17:24:47 +00:00
Anton Khorev
6616d5e1ba Don't scroll to or show markers of notes with no data 2022-10-09 09:08:45 +03:00
Anton Khorev
ec34d22039 Treat notes as map objects 2022-10-04 15:40:25 +03:00
Anton Khorev
fdcd5d6b80 Keep id passed to note page for subsequent use in map current object 2022-10-04 15:32:33 +03:00
Tom Hughes
2f6eebcd97 Update to leaflet 1.8.0 2022-04-18 14:10:06 +01:00
Tom Hughes
c4c0e8105a Enforce consistent indentation in javascript code 2019-07-14 10:52:18 +01:00
Tom Hughes
5bd59e1936 Enable a number of eslint style rules 2019-04-07 17:02:39 +01:00
Tom Hughes
eb7678145a Use double quotes consistently in javascript code 2019-04-06 15:59:34 +01:00
Tom Hughes
1f13321a60 Fix issues found by eslint 2019-04-01 22:03:39 +01:00
Tom Hughes
4b43396ede Rename 'clickable' to 'interactive' per leaflet 1.x change 2017-02-24 23:10:12 +00:00
Tom Hughes
6d124f8012 Fix some more JSHint issues 2015-02-24 00:30:25 +00:00
Tom Hughes
1596713871 Fix some JSHint complaints 2015-02-23 21:45:57 +00:00
Tom Hughes
e256c837b5 Eliminate templating from most javascript 2015-02-23 21:45:57 +00:00
Renamed from app/assets/javascripts/index/note.js.erb (Browse further)