You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1008 B
27 lines
1008 B
//$('#realtyId').on('change', function(evt) {
|
|
// var realtyId = Number($(this).val())
|
|
//
|
|
// if (realtyId) {
|
|
// loadRealtyDetails(realtyId).then(function(res) {
|
|
// $('#realtyName').val(res.name)
|
|
// $('#realtyBuildingClassificationId').val(res.building_classification.id).change()
|
|
// $('#realtyConstructionTypeId').val(res.construction_type.id).change()
|
|
// $('#realtyLocationId').val(res.location.id).change()
|
|
// })
|
|
// } else {
|
|
// $('#realtyName').val('')
|
|
// $('#realtyBuildingClassificationId').val('').change()
|
|
// $('#realtyConstructionTypeId').val('').change()
|
|
// $('#realtyLocationId').val('').change()
|
|
// }
|
|
//})
|
|
//
|
|
//function loadRealtyDetails(realtyId) {
|
|
// return $.ajax({
|
|
// url: '/api/realties/' + realtyId + '/',
|
|
// method: 'GET',
|
|
// dataType: 'json',
|
|
// })
|
|
// .then(function(res) {return res})
|
|
// .fail(function() {console.error('Failed', arguments)})
|
|
//}
|
|
|