Merge pull request #732 from openclassify/muammertop

phonefield default country fixed
This commit is contained in:
Ozcan Durak 2020-10-21 10:39:05 +03:00 committed by GitHub
commit 431b298b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
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;
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>