File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 42
42
43
43
mapSettings . coords = [ latCoord , lngCoord ] ;
44
44
45
- latField . val ( latCoord ) ;
46
- lngField . val ( lngCoord ) ;
47
45
updateBounds ( init ) ;
48
46
49
47
// Mark form as changed if this isn't initialisation
50
48
if ( ! init ) {
49
+ latField . val ( latCoord ) ;
50
+ lngField . val ( lngCoord ) ;
51
51
$ ( '.cms-edit-form' ) . addClass ( 'changed' ) ;
52
52
}
53
53
}
Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ public function Field($properties = array()) {
156
156
$ this ->recordFieldData ('Longitude ' )
157
157
),
158
158
'center ' => array (
159
- $ this ->getLatData ( ) ?: $ this ->getOption ('center.Latitude ' ),
160
- $ this ->getLngData ( ) ?: $ this ->getOption ('center.Longitude ' ),
159
+ $ this ->recordFieldData ( ' Latitude ' ) ?: $ this ->getOption ('center.Latitude ' ),
160
+ $ this ->recordFieldData ( ' Longitude ' ) ?: $ this ->getOption ('center.Longitude ' ),
161
161
),
162
162
'map ' => array (
163
163
'zoom ' => $ this ->recordFieldData ('Zoom ' ) ?: $ this ->getOption ('map.zoom ' ),
You can’t perform that action at this time.
0 commit comments