diff --git a/assets/src/js/app.js b/assets/src/js/app.js index b938d08..1145325 100644 --- a/assets/src/js/app.js +++ b/assets/src/js/app.js @@ -73,15 +73,15 @@ $(function () { if (days) { var date = new Date() - date.setTime(date.getTime()+(days * 24 * 60 * 60 * 1000)) - expires = '; expires='+date.toGMTString() + date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)) + expires = '; expires=' + date.toGMTString() } - document.cookie = name+"="+value+expires+"; path=/" + document.cookie = name + "=" + value + expires + "; path=/" } function checkCookie(name) { - var nameEQ = name+"=", + var nameEQ = name + "=", ca = document.cookie.split(';') for (var i = 0; i < ca.length; i++) { @@ -125,11 +125,12 @@ $(function () { options = $.extend({ initialCountry: (app.country.iso_code_2 || '').toLowerCase(), separateDialCode: true, + nationalMode: true, utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/11.0.4/js/utils.js" }, $this.data()), $telephoneInput = $('').attr({ type: 'hidden', - id: 'hidden-input-'+$this.attr('id'), + id: 'hidden-input-' + $this.attr('id'), name: $this.attr('name'), value: $this.val(), });