mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
Merge pull request #833 from openclassify/dia
#2753 emlak24 eksikler 24.11
This commit is contained in:
commit
3a5be3b62f
@ -87,7 +87,7 @@ function Locations(cat, level, name) {
|
|||||||
url: "/class/ajax",
|
url: "/class/ajax",
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
$('select[name="' + name + '"]').find('option').remove();
|
$('select[name="' + name + '"]').find('option').remove();
|
||||||
$('select[name="' + name + '"]').append('<option value="">Choose an option...</option>');
|
$('select[name="' + name + '"]').append('<option value="">' + chooseOptionTrans + '</option>');
|
||||||
$.each(msg, function (key, value) {
|
$.each(msg, function (key, value) {
|
||||||
$('select[name="' + name + '"]').append('<option value="' + value.id + '">' + value.name + '</option>');
|
$('select[name="' + name + '"]').append('<option value="' + value.id + '">' + value.name + '</option>');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -34,5 +34,6 @@ return [
|
|||||||
'address' => [
|
'address' => [
|
||||||
'name' => 'Address',
|
'name' => 'Address',
|
||||||
],
|
],
|
||||||
'selected' => 'Selected'
|
'selected' => 'Selected',
|
||||||
|
'choose_an_option' => 'Choose an option...',
|
||||||
];
|
];
|
||||||
|
|||||||
@ -80,6 +80,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var selectedAddressText = "{{ trans('visiosoft.module.location::field.selected') }}";
|
var selectedAddressText = "{{ trans('visiosoft.module.location::field.selected') }}";
|
||||||
var chooseAddressText = '{{ trans("visiosoft.module.profile::field.choose.name") }}';
|
var chooseAddressText = '{{ trans("visiosoft.module.profile::field.choose.name") }}';
|
||||||
|
var chooseOptionTrans = '{{ trans("visiosoft.module.location::field.choose_an_option") }}';
|
||||||
</script>
|
</script>
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?key={{ setting_value('visiosoft.module.location::google_map_key') }}&callback="
|
<script src="https://maps.googleapis.com/maps/api/js?key={{ setting_value('visiosoft.module.location::google_map_key') }}&callback="
|
||||||
type="text/javascript"></script>
|
type="text/javascript"></script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user