diff --git a/addons/default/visiosoft/advs-module/resources/js/editContactInformation.js b/addons/default/visiosoft/advs-module/resources/js/editContactInformation.js index 2eb662a00..07a186a57 100644 --- a/addons/default/visiosoft/advs-module/resources/js/editContactInformation.js +++ b/addons/default/visiosoft/advs-module/resources/js/editContactInformation.js @@ -44,12 +44,12 @@ $('.editInformationUser').on('click', function () { success: function (response) { if (response.status == "success") { var profile = response.data; - $('input[name="first_name"]').val(profile.first_name) - $('input[name="last_name"]').val(profile.last_name) - intlTelInput(document.querySelector("input[name='gsm_phone']")).setNumber(profile.gsm_phone) - intlTelInput(document.querySelector("input[name='office_phone']")).setNumber(profile.office_phone) - intlTelInput(document.querySelector("input[name='land_phone']")).setNumber(profile.land_phone) + $('input[name="first_name"]').val(profile.first_name); + $('input[name="last_name"]').val(profile.last_name); + intlTelInput(document.querySelector("input[name='gsm_phone']")).setNumber(profile.gsm_phone); + intlTelInput(document.querySelector("input[name='office_phone']")).setNumber(profile.office_phone); + intlTelInput(document.querySelector("input[name='land_phone']")).setNumber(profile.land_phone); } } }); -}) \ No newline at end of file +}); \ No newline at end of file diff --git a/addons/default/visiosoft/media-field_type/resources/views/upload/index.twig b/addons/default/visiosoft/media-field_type/resources/views/upload/index.twig index 0b85c9875..ce631fce8 100644 --- a/addons/default/visiosoft/media-field_type/resources/views/upload/index.twig +++ b/addons/default/visiosoft/media-field_type/resources/views/upload/index.twig @@ -18,7 +18,7 @@ var imageCount = {{ field_type.value|length < setting_value('visiosoft.module.advs::ads_image_limit') ? setting_value('visiosoft.module.advs::ads_image_limit') - field_type.value|length - : 0 }} + : 0 }}; var settings_image = { 'resize_width':"{{ setting_value('visiosoft.module.advs::full_image_width') }}",