mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
custom fields bug fixed
This commit is contained in:
parent
29c4f85b1b
commit
91fc7282a5
@ -82,7 +82,7 @@ function Locations(cat, level, name){
|
|||||||
}).promise().done(function() {
|
}).promise().done(function() {
|
||||||
setLocation(level)
|
setLocation(level)
|
||||||
if(level==3){
|
if(level==3){
|
||||||
console.log(level);
|
|
||||||
haritaIslem(0);
|
haritaIslem(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -106,7 +106,7 @@ if(locationedit){
|
|||||||
}else{
|
}else{
|
||||||
var coordcenter = new google.maps.LatLng(38.9573415, 35.2415759);
|
var coordcenter = new google.maps.LatLng(38.9573415, 35.2415759);
|
||||||
}
|
}
|
||||||
console.log(locationedit);
|
|
||||||
var mapOptions = {
|
var mapOptions = {
|
||||||
|
|
||||||
center: coordcenter,
|
center: coordcenter,
|
||||||
@ -178,9 +178,8 @@ function placeMarker(location) {
|
|||||||
|
|
||||||
editMarket();
|
editMarket();
|
||||||
function editMarket() {
|
function editMarket() {
|
||||||
console.log($('input[name="map_Val"]'));
|
|
||||||
var locationedit = $('input[name="map_Val"]').val();
|
var locationedit = $('input[name="map_Val"]').val();
|
||||||
if($('input[name="map_Val"]')){
|
if(locationedit){
|
||||||
var lat = locationedit.split(",")[0];
|
var lat = locationedit.split(",")[0];
|
||||||
var lng = locationedit.split(",")[1];
|
var lng = locationedit.split(",")[1];
|
||||||
var location = new google.maps.LatLng(lat, lng);
|
var location = new google.maps.LatLng(lat, lng);
|
||||||
@ -192,7 +191,6 @@ function editMarket() {
|
|||||||
marker = new google.maps.Marker({
|
marker = new google.maps.Marker({
|
||||||
position: location,
|
position: location,
|
||||||
map: map
|
map: map
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -140,6 +140,7 @@ return [
|
|||||||
'share' => 'Share this ad',
|
'share' => 'Share this ad',
|
||||||
'report' => 'Report this ad',
|
'report' => 'Report this ad',
|
||||||
'features' => 'Features',
|
'features' => 'Features',
|
||||||
|
"streetview" =>"Street View",
|
||||||
'recommended_ads' => 'Recommended Ads for You',
|
'recommended_ads' => 'Recommended Ads for You',
|
||||||
'new' => 'New',
|
'new' => 'New',
|
||||||
'short_info' => 'Short Info',
|
'short_info' => 'Short Info',
|
||||||
|
|||||||
@ -177,6 +177,7 @@
|
|||||||
"share" =>"Bu reklamı paylaş",
|
"share" =>"Bu reklamı paylaş",
|
||||||
"report" =>"Bu reklamı bildir",
|
"report" =>"Bu reklamı bildir",
|
||||||
"features" =>"Özellikler",
|
"features" =>"Özellikler",
|
||||||
|
"streetview" =>"Sokak Görünümü",
|
||||||
"recommended_ads" =>"Sizin için Önerilen Reklamlar",
|
"recommended_ads" =>"Sizin için Önerilen Reklamlar",
|
||||||
"new" =>"Yeni",
|
"new" =>"Yeni",
|
||||||
"short_info" =>"Kısa Bilgi",
|
"short_info" =>"Kısa Bilgi",
|
||||||
|
|||||||
@ -240,7 +240,7 @@
|
|||||||
|
|
||||||
{% if entries('advs').isEnabled('streetview') and adv.map_Val != "" %}
|
{% if entries('advs').isEnabled('streetview') and adv.map_Val != "" %}
|
||||||
<li class=""><a data-toggle="tab" href="#streetviewtab"
|
<li class=""><a data-toggle="tab" href="#streetviewtab"
|
||||||
id="streetviewlink">{{ trans('visiosoft.module.advs::field.features') }}</a>
|
id="streetviewlink">{{ trans('visiosoft.module.advs::field.streetview') }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -270,13 +270,18 @@
|
|||||||
{% for feature in features %}
|
{% for feature in features %}
|
||||||
<li>
|
<li>
|
||||||
<h5>{{ feature.name ? feature.name : '' }} </h5>
|
<h5>{{ feature.name ? feature.name : '' }} </h5>
|
||||||
|
{% if feature.custom_field_value is iterable %}
|
||||||
{% set array = feature.custom_field_value|split(',') %}
|
{% set array = feature.custom_field_value %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for value in array %}
|
{% for value in array %}
|
||||||
<li><i class="fa fa-check-circle"></i>{{ value }}</li>
|
<li><i class="fa fa-check-circle"></i>{{ value }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
{% else %}
|
||||||
|
<ul>
|
||||||
|
<li><i class="fa fa-check-circle"></i>{{ feature.custom_field_value }}</li>
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user