mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
commit
f3277d86c9
@ -131,17 +131,17 @@ var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions)
|
|||||||
|
|
||||||
function haritaIslem() {
|
function haritaIslem() {
|
||||||
var str = '';
|
var str = '';
|
||||||
if ($('select[name="' + countrySelectName + '"]').val() != "") {
|
if ($('select[name="' + countrySelectName + '"]').val()) {
|
||||||
str += $('select[name="' + countrySelectName + '"] :selected').text() + ' ';
|
str += $('select[name="' + countrySelectName + '"] :selected').first().text() + ' ';
|
||||||
}
|
}
|
||||||
if ($('select[name="' + citySelectName + '"]').val() != "") {
|
if ($('select[name="' + citySelectName + '"]').val()) {
|
||||||
str += $('select[name="' + citySelectName + '"] :selected').text() + ' ';
|
str += $('select[name="' + citySelectName + '"] :selected').first().text() + ' ';
|
||||||
}
|
}
|
||||||
if ($('select[name="' + districtSelectName + '"]').val() != "") {
|
if ($('select[name="' + districtSelectName + '"]').val()) {
|
||||||
str += $('select[name="' + districtSelectName + '"] :selected').text() + ' ';
|
str += $('select[name="' + districtSelectName + '"] :selected').first().text() + ' ';
|
||||||
}
|
}
|
||||||
if ($('select[name="' + neighborhoodSelectName + '"]').val() != "") {
|
if ($('select[name="' + neighborhoodSelectName + '"]').val()) {
|
||||||
str += $('select[name="' + neighborhoodSelectName + '"] :selected').text() + ' ';
|
str += $('select[name="' + neighborhoodSelectName + '"] :selected').first().text() + ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!str) {
|
if (!str) {
|
||||||
|
|||||||
@ -4,8 +4,9 @@
|
|||||||
{{ content|raw }}
|
{{ content|raw }}
|
||||||
|
|
||||||
{% if form.mode == 'edit' %}
|
{% if form.mode == 'edit' %}
|
||||||
|
{% set entry = form.entry.setAttribute('cf_json', null) %}
|
||||||
<script>
|
<script>
|
||||||
const ad = JSON.parse(`{{ form.entry|json_encode|raw }}`)
|
const ad = JSON.parse(`{{ entry|json_encode|raw }}`)
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user