mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #21 from openclassify/onurure
custom fields bug fixed
This commit is contained in:
commit
3a099e4ae8
@ -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
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user