plugin assets sync
This commit is contained in:
@@ -373,19 +373,20 @@ $carMakes = [
|
||||
url: ajax_object.ajax_url,
|
||||
data: formData,
|
||||
success: function(response) {
|
||||
const vehicles = response.data.vehicles;
|
||||
if (inputs) {
|
||||
inputs.forEach(element => {
|
||||
createOptions(vehicles, element);
|
||||
});
|
||||
if(response.success){
|
||||
const vehicles = response.data.vehicles;
|
||||
if (inputs) {
|
||||
inputs.forEach(element => {
|
||||
createOptions(vehicles, element);
|
||||
});
|
||||
}
|
||||
jQuery("#inventory-search-button").text("Search (" + vehicles.length + ")");
|
||||
}else{
|
||||
alert(response.data.message);
|
||||
jQuery("#inventory-search-button").text("Search");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
jQuery("#inventory-search-button").text("Search (" + vehicles.length + ")");
|
||||
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.log(xhr.responseText);
|
||||
|
@@ -407,7 +407,7 @@ $image_description = !empty($vehicle_images[0]['description']) ? $vehicle_images
|
||||
<div class="p-4">
|
||||
<span class="text-xl font-semibold">
|
||||
<span class="text-gray-600 dark:text-gray-300 paymentSpan">
|
||||
<?php echo $formattedPrice = '$ ' . number_format(416); ?>
|
||||
<?php echo $formattedPrice = '$ ' . number_format($vehicle_details['advertise_price']); ?>
|
||||
</span>
|
||||
<i class="fas fa-calculator cursor-pointer" onclick="openFinanceModal()"></i>
|
||||
</span>
|
||||
@@ -625,9 +625,9 @@ const mergedDetails = {
|
||||
const icon = this.querySelector('[data-accordion-icon]');
|
||||
icon.style.transform = expanded === 'true' ? 'rotate(0deg)' : 'rotate(180deg)';
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
// ripple effect
|
||||
|
||||
const btns = document.getElementsByClassName("ripple-effect");
|
||||
@@ -653,6 +653,9 @@ const mergedDetails = {
|
||||
});
|
||||
});
|
||||
|
||||
tabs[0].click();
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user