Browse Source

Fix bug with phone number

boutils 10 năm trước cách đây
mục cha
commit
5bc72d03cc
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      js/app.js

+ 3 - 0
js/app.js

@@ -1055,6 +1055,9 @@ app.controller('mainController', function($scope, $detection, $http, $mdSidenav,
       if(value === 'undefined' || value === undefined) {
         value = '';
       }
+      if(key === 'telephone_fixe' || key === 'telephone_portable') {
+        value = value.replace(/ /g, '').replace(/\./g, '').replace(/-/g, '');
+      }
       if(typeof value === 'boolean') {
         values += value + ', ';
       }