Commit 932900b 1 parent 2fb5f12 commit 932900b Copy full SHA for 932900b
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -143,16 +143,16 @@ function updateEditor(e) {
143
143
data.features.shift();
144
144
}
145
145
var coords = String( data.features[0].geometry.coordinates ).split(",");
146
- document.getElementById("map_lnglat ").value = data.features[0].geometry.coordinates;
147
- document.getElementById("map_lng ").value = coords[0];
148
- document.getElementById("map_lat ").value = coords[1];
146
+ document.getElementById("<?php echo $ field_type -> _id ( ' _lnglat ' ); ?> ").value = data.features[0].geometry.coordinates;
147
+ document.getElementById("<?php echo $ field_type -> _id ( ' _lng ' ); ?> ").value = coords[0];
148
+ document.getElementById("<?php echo $ field_type -> _id ( ' _lat ' ); ?> ").value = coords[1];
149
149
} else {
150
150
draw
151
151
.deleteAll()
152
152
.getAll();
153
- document.getElementById("map_lnglat ").value = '';
154
- document.getElementById("map_lng ").value = '';
155
- document.getElementById("map_lat ").value = '';
153
+ document.getElementById("<?php echo $ field_type -> _id ( ' _lnglat ' ); ?> ").value = '';
154
+ document.getElementById("<?php echo $ field_type -> _id ( ' _lng ' ); ?> ").value = '';
155
+ document.getElementById("<?php echo $ field_type -> _id ( ' _lat ' ); ?> ").value = '';
156
156
}
157
157
}
158
158
<?php if ( ! empty ( $ value ['lnglat ' ] ) ) { ?>
You can’t perform that action at this time.
0 commit comments