Merge pull request #21 from openclassify/onurure

custom fields bug fixed
This commit is contained in:
Fatih Alp 2019-06-26 17:17:08 +03:00 committed by GitHub
commit 3a099e4ae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 13 deletions

View File

@ -82,7 +82,7 @@ function Locations(cat, level, name){
}).promise().done(function() {
setLocation(level)
if(level==3){
console.log(level);
haritaIslem(0);
}
});
@ -106,7 +106,7 @@ if(locationedit){
}else{
var coordcenter = new google.maps.LatLng(38.9573415, 35.2415759);
}
console.log(locationedit);
var mapOptions = {
center: coordcenter,
@ -178,9 +178,8 @@ function placeMarker(location) {
editMarket();
function editMarket() {
console.log($('input[name="map_Val"]'));
var locationedit = $('input[name="map_Val"]').val();
if($('input[name="map_Val"]')){
if(locationedit){
var lat = locationedit.split(",")[0];
var lng = locationedit.split(",")[1];
var location = new google.maps.LatLng(lat, lng);
@ -192,7 +191,6 @@ function editMarket() {
marker = new google.maps.Marker({
position: location,
map: map
});
}
}

View File

@ -140,6 +140,7 @@ return [
'share' => 'Share this ad',
'report' => 'Report this ad',
'features' => 'Features',
"streetview" =>"Street View",
'recommended_ads' => 'Recommended Ads for You',
'new' => 'New',
'short_info' => 'Short Info',

View File

@ -177,6 +177,7 @@
"share" =>"Bu reklamı paylaş",
"report" =>"Bu reklamı bildir",
"features" =>"Özellikler",
"streetview" =>"Sokak Görünümü",
"recommended_ads" =>"Sizin için Önerilen Reklamlar",
"new" =>"Yeni",
"short_info" =>"Kısa Bilgi",

View File

@ -240,7 +240,7 @@
{% if entries('advs').isEnabled('streetview') and adv.map_Val != "" %}
<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>
{% endif %}
@ -270,13 +270,18 @@
{% for feature in features %}
<li>
<h5>{{ feature.name ? feature.name : '' }} </h5>
{% set array = feature.custom_field_value|split(',') %}
<ul>
{% for value in array %}
<li><i class="fa fa-check-circle"></i>{{ value }}</li>
{% endfor %}
</ul>
{% if feature.custom_field_value is iterable %}
{% set array = feature.custom_field_value %}
<ul>
{% for value in array %}
<li><i class="fa fa-check-circle"></i>{{ value }}</li>
{% endfor %}
</ul>
{% else %}
<ul>
<li><i class="fa fa-check-circle"></i>{{ feature.custom_field_value }}</li>
</ul>
{% endif %}
</li>
{% endfor %}
</ul>