mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
hidden undefined country and city for profile ads
This commit is contained in:
parent
edb4194a19
commit
eb5eb188fa
@ -93,6 +93,8 @@ getMyAdvs(type);
|
|||||||
|
|
||||||
|
|
||||||
function addAdsRow(id, href, image, name, formatted_price, city, country, cat1, cat2, status) {
|
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" +
|
return "<div class='col-md-12 mb-2 profile-ads border-bottom border-white'>\n" +
|
||||||
"<div class='row bg-light'>\n" +
|
"<div class='row bg-light'>\n" +
|
||||||
"<div class='col-md-2 justify-content-center align-self-center border-right border-white'>\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;
|
return dropdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
function addDropdownBlock () {
|
function addDropdownBlock() {
|
||||||
const dropdowns = $('.my-ads-dropdown')
|
const dropdowns = $('.my-ads-dropdown')
|
||||||
for (let i = 0; i < dropdowns.length; i++) {
|
for (let i = 0; i < dropdowns.length; i++) {
|
||||||
const currentDropdown = $(dropdowns[i])
|
const currentDropdown = $(dropdowns[i])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user