added home trench to Borderpoint image in ConstructionConsent
This commit is contained in:
@@ -331,10 +331,16 @@
|
||||
if(!$("#plan_adb_hausnummer_id").val()) return;
|
||||
|
||||
var building_id = $('#plan_adb_hausnummer_id').val();
|
||||
var type = $("#object_type").val();
|
||||
// get plan image preview
|
||||
|
||||
try {
|
||||
var response = await fetch('<?=self::getUrl("ConstructionConsent", "Api", ["do" => "getRimoPlanPreview"])?>&building_id=' + building_id);
|
||||
var response;
|
||||
if(type == "building" ) {
|
||||
response = await fetch('<?=self::getUrl("ConstructionConsent", "Api", ["do" => "getRimoPlanPreview"])?>&building_id=' + building_id + '&include_home_trench=1');
|
||||
} else {
|
||||
response = await fetch('<?=self::getUrl("ConstructionConsent", "Api", ["do" => "getRimoPlanPreview"])?>&building_id=' + building_id);
|
||||
}
|
||||
if (!response.ok) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user