Commit e90c798fa3737a45a57c1b63071bf7fad3ecbb68
Exists in
master
and in
1 other branch
Merge branch 'fix_acentos' into 'develop'
Fix acentos See merge request !23
Showing
2 changed files
 
Show diff stats
package.json
| ... | ... | @@ -10,7 +10,8 @@ | 
| 10 | 10 | "compile": "gulp uglify", | 
| 11 | 11 | "gulp-pre-commit": "gulp pre-commit", | 
| 12 | 12 | "postinstall": "npm run compile && gulp clean-post-install", | 
| 13 | - "install-dev": "npm install -D angular bootstrap font-awesome gulp gulp-angular-templatecache gulp-clean gulp-concat gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify-es jasmine-core jquery jshint pre-commit pump && npm install angular-sanitize" | |
| 13 | + "install-dev": "npm install -D angular bootstrap font-awesome gulp gulp-angular-templatecache gulp-clean gulp-concat gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify-es jasmine-core jquery jshint pre-commit pump && npm install angular-sanitize", | |
| 14 | + "frefresh": "gulp uglify && cp tmp/foca-botonera-facturador.js ../wrapper-facturador/node_modules/foca-botonera-facturador/dist/foca-botonera-facturador.min.js" | |
| 14 | 15 | }, | 
| 15 | 16 | "pre-commit": [ | 
| 16 | 17 | "gulp-pre-commit" | 
src/js/controller.js
| ... | ... | @@ -16,6 +16,7 @@ angular.module('focaBotoneraFacturador') | 
| 16 | 16 | var texto = 'seleccionar'; | 
| 17 | 17 | var arr = string.split(' '); | 
| 18 | 18 | arr.forEach(function(palabra) { | 
| 19 | + palabra = palabra.normalize('NFD').replace(/[\u0300-\u036f]/g,""); | |
| 19 | 20 | palabra = palabra.charAt(0).toUpperCase() + palabra.slice(1); | 
| 20 | 21 | texto += palabra; | 
| 21 | 22 | }); |