hidden undefined country and city for profile ads

This commit is contained in:
vedatakdogan 2020-11-23 16:24:07 +03:00
parent edb4194a19
commit eb5eb188fa

View File

@ -93,6 +93,8 @@ getMyAdvs(type);
function addAdsRow(id, href, image, name, formatted_price, city, country, cat1, cat2, status) {
city = (city) ? city : '';
country = (country) ? country : '';
return "<div class='col-md-12 mb-2 profile-ads border-bottom border-white'>\n" +
"<div class='row bg-light'>\n" +
"<div class='col-md-2 justify-content-center align-self-center border-right border-white'>\n" +
@ -160,7 +162,7 @@ function dropdownRow(id, type) {
return dropdown;
}
function addDropdownBlock () {
function addDropdownBlock() {
const dropdowns = $('.my-ads-dropdown')
for (let i = 0; i < dropdowns.length; i++) {
const currentDropdown = $(dropdowns[i])