Merge branch '11-fix-select-a-vehicle-in-job-order' into 'master'
Resolve "Fix "Select a vehicle" in job order" Closes #11 See merge request jankstudio/resq!9
This commit is contained in:
commit
bf42224f00
1 changed files with 5 additions and 2 deletions
|
|
@ -647,6 +647,9 @@ $(function() {
|
|||
// check if we need to set map
|
||||
var latlng = new google.maps.LatLng({{ obj.getCoordinates.getLatitude }}, {{ obj.getCoordinates.getLongitude }});
|
||||
selectPoint(map, latlng);
|
||||
|
||||
// remove placeholder text
|
||||
$("[data-vehicle-field='1']").prop('placeholder', '');
|
||||
{% endif %}
|
||||
|
||||
{% if mode == 'update-processing' %}
|
||||
|
|
@ -815,8 +818,8 @@ $(function() {
|
|||
|
||||
if (typeof vdata.battery !== 'undefined') {
|
||||
$("#current-battery").val(vdata.battery.mfg_name + " " + vdata.battery.model_name + " " + vdata.battery.size_name + " (" + vdata.battery.prod_code + ")");
|
||||
$("#warranty-code").val(vdata.battery.warranty_code).prop('placeholder', '');
|
||||
$("#warranty-expiration").val(vdata.battery.warranty_expiration).prop('placeholder', '');
|
||||
$("#warranty-code").val(vdata.battery.warranty_code);
|
||||
$("#warranty-expiration").val(vdata.battery.warranty_expiration);
|
||||
} else {
|
||||
$("#current-battery, #warranty-code, #warranty-expiration").val("No current battery").css('color', '#f4516c');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue