Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #35 from lukereative/pulls/no-change-track-class
Browse files Browse the repository at this point in the history
Fix wrong change track exclusion class
  • Loading branch information
willmorgan authored Sep 24, 2018
2 parents 450b814 + ae2d5b7 commit 06fdaa0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GoogleMapField.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,24 +108,24 @@ public function setupChildren() {
$name.'[Latitude]',
'Lat',
$this->recordFieldData('Latitude')
)->addExtraClass('googlemapfield-latfield no-detect-changes');
)->addExtraClass('googlemapfield-latfield no-change-track');

$this->lngField = HiddenField::create(
$name.'[Longitude]',
'Lng',
$this->recordFieldData('Longitude')
)->addExtraClass('googlemapfield-lngfield no-detect-changes');
)->addExtraClass('googlemapfield-lngfield no-change-track');

$this->zoomField = HiddenField::create(
$name.'[Zoom]',
'Zoom',
$this->recordFieldData('Zoom')
)->addExtraClass('googlemapfield-zoomfield no-detect-changes');
)->addExtraClass('googlemapfield-zoomfield no-change-track');
$this->boundsField = HiddenField::create(
$name.'[Bounds]',
'Bounds',
$this->recordFieldData('Bounds')
)->addExtraClass('googlemapfield-boundsfield no-detect-changes');
)->addExtraClass('googlemapfield-boundsfield no-change-track');
$this->children = new FieldList(
$this->latField,
$this->lngField,
Expand Down

0 comments on commit 06fdaa0

Please sign in to comment.