From ad104df4f11684f2ef78ebc27100e999778a7b33 Mon Sep 17 00:00:00 2001 From: Tam Date: Thu, 18 May 2017 13:28:02 +0100 Subject: [PATCH] Fix for #36 --- README.md | 3 +++ releases.json | 8 ++++++ simplemap/SimpleMapPlugin.php | 2 +- simplemap/templates/map-settings.twig | 38 ++++++++++++++++++++++++--- 4 files changed, 46 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3da3237..ec18c87 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,9 @@ var map = new mapboxgl.Map({ ## Changelog +### 1.5.1 +- Fixed the Lat/Lng inputs not accepting decimals in Chrome #36 + ### 1.5.0 - *The "about time" update* - Added [FeedMe 2](https://sgroup.com.au/plugins/feedme) support! (thanks to @engram-design, #23) - Added support for [Neo](https://github.com/benjamminf/craft-neo). #21 diff --git a/releases.json b/releases.json index 3b44b40..03db084 100644 --- a/releases.json +++ b/releases.json @@ -120,5 +120,13 @@ "[Improved] If the query limit is reached, the map will re-try after 1 second, a maximum of 5 times. #19", "[Improved] The address of the map will be returned when output as a string, i.e. `{{ entry.myMapField }}`. #29" ] + }, + { + "version": "1.5.1", + "downloadUrl": "https://github.com/ethercreative/simplemap/archive/v1.5.1.zip", + "date": "2017-05-18T14:45:00-08:00", + "notes": [ + "[Fixed] Fixed the Lat/Lng inputs not accepting decimals in Chrome #36" + ] } ] diff --git a/simplemap/SimpleMapPlugin.php b/simplemap/SimpleMapPlugin.php index 7d7c094..e6a9ba6 100644 --- a/simplemap/SimpleMapPlugin.php +++ b/simplemap/SimpleMapPlugin.php @@ -24,7 +24,7 @@ public function getDescription() public function getVersion() { - return '1.5.0'; + return '1.5.1'; } public function getSchemaVersion() diff --git a/simplemap/templates/map-settings.twig b/simplemap/templates/map-settings.twig index db95d62..a2b9f1a 100644 --- a/simplemap/templates/map-settings.twig +++ b/simplemap/templates/map-settings.twig @@ -1,26 +1,56 @@ {% import "_includes/forms" as forms %} -{{ forms.textField({ +{# WHY YOU NO SUPPORT STEP CRUFT??? :( #} + +{#{{ forms.textField({ label: "Latitude"|t, instructions: 'The maps default latitude', placeholder: '51.272154', size: 10, + step: 0.000000000000001, id: 'lat', name: 'lat', value: settings.lat, type: 'number' -}) }} +}) }}#} -{{ forms.textField({ +
+
+ +

The maps default latitude

+
+
+ +
+
+ +{#{{ forms.textField({ label: "Longitude"|t, instructions: 'The maps default longitude', placeholder: '0.514951', size: 10, + step: 0.000000000000001, id: 'lng', name: 'lng', value: settings.lng, type: 'number' -}) }} +}) }}#} + +
+
+ +

The maps default longitude

+
+
+ +
+
{{ forms.textField({ label: "Zoom Level"|t,