Merge pull request #833 from openclassify/dia

#2753 emlak24 eksikler 24.11
This commit is contained in:
Fatih Alp 2020-11-30 09:24:10 +03:00 committed by GitHub
commit 3a5be3b62f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,7 @@ function Locations(cat, level, name) {
url: "/class/ajax",
success: function (msg) {
$('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) {
$('select[name="' + name + '"]').append('<option value="' + value.id + '">' + value.name + '</option>');
});

View File

@ -34,5 +34,6 @@ return [
'address' => [
'name' => 'Address',
],
'selected' => 'Selected'
'selected' => 'Selected',
'choose_an_option' => 'Choose an option...',
];

View File

@ -80,6 +80,7 @@
<script>
var selectedAddressText = "{{ trans('visiosoft.module.location::field.selected') }}";
var chooseAddressText = '{{ trans("visiosoft.module.profile::field.choose.name") }}';
var chooseOptionTrans = '{{ trans("visiosoft.module.location::field.choose_an_option") }}';
</script>
<script src="https://maps.googleapis.com/maps/api/js?key={{ setting_value('visiosoft.module.location::google_map_key') }}&callback="
type="text/javascript"></script>