phonefield default country fixed

This commit is contained in:
Muammer Top 2020-10-21 10:15:10 +03:00
parent 5eceef958f
commit 694603ab88
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
function phoneMask(fields) {
var country = document.getElementById('country')
? document.getElementById('country').innerText : null;
var country = document.getElementById('default-phone-country')
? document.getElementById('default-phone-country').innerText : null;
alert(country)
var inputQueries = document.querySelectorAll(fields);
inputQueries.forEach(function (inputQuery, key) {
var iti = intlTelInput(inputQuery, {

View File

@ -56,7 +56,7 @@
<div class="input-wrapper validate-phone">
{{ form.fields.phone.setValue(form.fields.phone.value).input|raw }}
<div id="country" class="hidden">{{ setting_value('visiosoft.module.location::country_for_phone_field') }}</div>
<div id="default-phone-country" class="hidden">{{ setting_value('visiosoft.module.location::country_for_phone_field') }}</div>
</div>
</div>
</div>