Commit e03395676898b089a995b2a6268ddd250989cf19
1 parent
4171c77462
Exists in
fix_acentos
se reemplaza acentos en los labels para armar la fc sin acentos
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
package.json
... | ... | @@ -8,7 +8,8 @@ |
8 | 8 | "compile": "gulp uglify", |
9 | 9 | "gulp-pre-commit": "gulp pre-commit", |
10 | 10 | "postinstall": "npm run compile && gulp clean-post-install", |
11 | - "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" | |
11 | + "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", | |
12 | + "frefresh": "gulp uglify && cp tmp/foca-botonera-facturador.js ../wrapper-facturador/node_modules/foca-botonera-facturador/dist/foca-botonera-facturador.min.js" | |
12 | 13 | }, |
13 | 14 | "pre-commit": [ |
14 | 15 | "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 | }); |