| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-04-19 | Formatted JavaScript files. | Tom Carrick | |
| 2025-08-05 | Fixed #36537 -- Ensured unique HTML IDs for geometry widget option scripts ↵ | Matthias Kestenholz | |
| in the admin. This work amends the code from f2f6046c0f92ff1faed057da0711ac478eef439c where multiple geometry widgets rendered `<script>` elements in the admin with the same HTML `id`, resulting in invalid HTML and fragile JavaScript selectors. Refs #25706. This change uses the widget's textarea ID to generate a unique `id` for each JSON options `<script>`, ensuring valid and robust markup. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> | |||
| 2025-06-12 | Fixed #25706 -- Refactored geometry widgets to remove inline JavaScript. | Claude Paroz | |
| Refactored GIS-related JavaScript initialization to eliminate inline scripts from templates. Added support for specifying a base layer using the new `base_layer_name` attribute on `BaseGeometryWidget`, allowing custom map tile providers via user-defined JavaScript. As a result, the `gis/openlayers-osm.html` template was removed. Thanks Sarah Boyce for reviews. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> | |||
| 2024-05-06 | Migrated to ESLint 9+. | Mariusz Felisiak | |
| 2023-09-18 | Refs #33924 -- Removed BaseGeometryWidget.map_height/map_width attributes ↵ | Mariusz Felisiak | |
| per deprecation timeline. | |||
| 2022-12-29 | Upgraded OpenLayers to v.7.2.2. | Claude Paroz | |
| 2022-08-12 | Fixed #33924 -- Deprecated BaseGeometryWidget.map_height/map_width attributes. | Claude Paroz | |
| 2022-08-01 | Refs #25706 -- Removed inline CSS in the openlayers widget template. | Claude Paroz | |
| 2022-08-01 | Made MapWidget a JS class. | Claude Paroz | |
| 2022-04-14 | Fixed #33637 -- Improved initial zoom level in MapWidget. | Claude Paroz | |
| 2021-11-30 | Refs #25706 - Removed inline JavaScript from OpenLayers template. | Claude Paroz | |
| This allows setting a Content-Security-Policy HTTP header. | |||
| 2020-11-28 | Fixed #21021 -- Changed BaseGeometryWidget's default geometry type to ↵ | Giannis Adamopoulos | |
| 'Geometry'. | |||
| 2020-07-01 | Simplified JavaScript with Array.prototype.includes(). | Jon Dufresne | |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes | |||
| 2020-04-29 | Refs #31493 -- Changed IIFE to ES6 blocks. | Jon Dufresne | |
| 2020-04-29 | Fixed #31493 -- Replaced var with const and let keywords in JavaScript. | Jon Dufresne | |
| The eslint configuration and the admin script compress.py have been updated for ES6. The unused fallback of globals.django in jquery.init.js was removed. It is always included before jsi18n-mocks.test.js and it always sets the global value. | |||
| 2019-11-28 | Fixed #31028 -- Used classList API to check, add and remove DOM classes. | Jon Dufresne | |
| Thanks to Claude Paroz for review. | |||
| 2019-06-21 | Bumped minimum ESLint version to 4.18.2. | Markus Holtermann | |
| 2018-05-10 | Upgraded OpenLayers to 4.6.5 for OpenLayersWidget | Claude Paroz | |
| 2017-01-02 | Refs #25004 -- Replaced PNGs with SVGs | elky | |
| 2017-01-02 | Fixed #25004 -- Updated OpenLayers-based widget to OpenLayers 3 | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2016-07-31 | Fixed #26972 -- Fixed is_collection definition in MapWidget initialization | Claude Paroz | |
| 2015-07-22 | Fixed JavaScript "no-eval" violation. | Tim Graham | |
| 2015-07-22 | Fixed JavaScript "strict" violations. | Tim Graham | |
| 2015-07-18 | Fixed JavaScript "space-infix-ops" violations. | Tim Graham | |
| 2015-07-18 | Fixed JavaScript "dot-notation" violations. | Tim Graham | |
| 2015-07-18 | Fixed JavaScript "comma-spacing" violations. | Tim Graham | |
| 2015-07-18 | Fixed JavaScript "indent" violations. | Tim Graham | |
| 2015-07-18 | Fixed JavaScript space-before-function-paren violations. | Tim Graham | |
| 2015-07-18 | Fixed JavaScript "curly" violations. | Tim Graham | |
| 2015-06-27 | Fixed #22463 -- Added code style guide and JavaScript linting (EditorConfig ↵ | Trey Hunner | |
| and ESLint) | |||
| 2014-08-15 | Complemented 1.6 release notes for 457c16d0d6 | Claude Paroz | |
| And accessorily added missing bits fixing #23293. Forward port of 2cbafd814 from stable/1.7.x | |||
| 2014-06-03 | Removed erroneous trailing comma in OLMapWidget.js. | Egor Semiguzov | |
| 2014-03-03 | Fixed many typos in comments and docstrings. | Rodolfo Carvalho | |
| Thanks Piotr Kasprzyk for help with the patch. | |||
| 2014-01-20 | Fixed multi geometries editing in OpenLayers widget | Claude Paroz | |
| 2013-09-03 | Isolated map creation JS code | Claude Paroz | |
| 2013-09-03 | Prevented rendering attrs to be squashed in OSMWidget | Claude Paroz | |
| 2013-05-17 | Fixed #5472 --Added OpenLayers-based widgets in contrib.gis | Claude Paroz | |
| Largely inspired from django-floppyforms. Designed to not depend on OpenLayers at code level. | |||
