Remove placeholder text for vehicle fields on processing and assigning forms #11
This commit is contained in:
parent
056f8e368b
commit
193503d5a6
1 changed files with 5 additions and 2 deletions
|
|
@ -647,6 +647,9 @@ $(function() {
|
||||||
// check if we need to set map
|
// check if we need to set map
|
||||||
var latlng = new google.maps.LatLng({{ obj.getCoordinates.getLatitude }}, {{ obj.getCoordinates.getLongitude }});
|
var latlng = new google.maps.LatLng({{ obj.getCoordinates.getLatitude }}, {{ obj.getCoordinates.getLongitude }});
|
||||||
selectPoint(map, latlng);
|
selectPoint(map, latlng);
|
||||||
|
|
||||||
|
// remove placeholder text
|
||||||
|
$("[data-vehicle-field='1']").prop('placeholder', '');
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if mode == 'update-processing' %}
|
{% if mode == 'update-processing' %}
|
||||||
|
|
@ -815,8 +818,8 @@ $(function() {
|
||||||
|
|
||||||
if (typeof vdata.battery !== 'undefined') {
|
if (typeof vdata.battery !== 'undefined') {
|
||||||
$("#current-battery").val(vdata.battery.mfg_name + " " + vdata.battery.model_name + " " + vdata.battery.size_name + " (" + vdata.battery.prod_code + ")");
|
$("#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-code").val(vdata.battery.warranty_code);
|
||||||
$("#warranty-expiration").val(vdata.battery.warranty_expiration).prop('placeholder', '');
|
$("#warranty-expiration").val(vdata.battery.warranty_expiration);
|
||||||
} else {
|
} else {
|
||||||
$("#current-battery, #warranty-code, #warranty-expiration").val("No current battery").css('color', '#f4516c');
|
$("#current-battery, #warranty-code, #warranty-expiration").val("No current battery").css('color', '#f4516c');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue