Skip to content

Commit

Permalink
Fix for #36
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed May 18, 2017
1 parent eca6dfe commit ad104df
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
]
2 changes: 1 addition & 1 deletion simplemap/SimpleMapPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getDescription()

public function getVersion()
{
return '1.5.0';
return '1.5.1';
}

public function getSchemaVersion()
Expand Down
38 changes: 34 additions & 4 deletions simplemap/templates/map-settings.twig
Original file line number Diff line number Diff line change
@@ -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({
<div class="field" id="lat-field">
<div class="heading">
<label id="lat-label" for="lat">Latitude</label>
<div class="instructions"><p>The maps default latitude</p></div>
</div>
<div class="input ltr">
<input class="text" type="number" id="lat" size="10"
step="0.000000000000001" name="lat"
value="{{ settings.lat }}"
autocomplete="off" placeholder="51.272154">
</div>
</div>

{#{{ 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'
}) }}
}) }}#}

<div class="field" id="lng-field">
<div class="heading">
<label id="lng-label" for="lng">Longitude</label>
<div class="instructions"><p>The maps default longitude</p></div>
</div>
<div class="input ltr">
<input class="text" type="number" id="lng" size="10"
step="0.000000000000001" name="lng"
value="{{ settings.lng }}"
autocomplete="off" placeholder="0.514951">
</div>
</div>

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

0 comments on commit ad104df

Please sign in to comment.