Commit eddbb3be01ab068cfb6ee10c45026bfc02761738
1 parent
c3e22919cb
Exists in
master
Boton salir en mobile
Showing
3 changed files
with
36 additions
and
28 deletions
Show diff stats
package.json
... | ... | @@ -8,43 +8,43 @@ |
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 jasmine-core pre-commit angular angular-ladda ladda@1.0.6 angular-route bootstrap ui-bootstrap4 font-awesome gulp gulp-angular-templatecache gulp-connect gulp-clean gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-sequence gulp-uglify-es gulp-uglify jquery jshint pump git+https://debo.suite.repo/modulos-npm/foca-directivas.git git+https://debo.suite.repo/modulos-npm/foca-modal-remito.git" | |
11 | + "install-dev": "npm install -D jasmine-core pre-commit angular angular-ladda ladda@1.0.6 angular-route bootstrap ui-bootstrap4 font-awesome gulp gulp-angular-templatecache gulp-connect gulp-clean gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-sequence gulp-uglify-es gulp-uglify jquery jshint pump git+ssh://git@debonline.dyndns.org:npm/foca-directivas.git git+ssh://git@debonline.dyndns.org:npm/foca-modal-remito.git" | |
12 | 12 | }, |
13 | 13 | "pre-commit": [ |
14 | 14 | "gulp-pre-commit" |
15 | 15 | ], |
16 | 16 | "repository": { |
17 | 17 | "type": "git", |
18 | - "url": "https://debo.suite.repo/modulos-npm/foca-hoja-ruta.git" | |
18 | + "url": "git+ssh://git@debonline.dyndns.org:npm/foca-hoja-ruta.git" | |
19 | 19 | }, |
20 | 20 | "author": "Foca Software", |
21 | 21 | "license": "ISC", |
22 | 22 | "devDependencies": { |
23 | - "angular": "^1.7.5", | |
24 | - "angular-ladda": "^0.4.3", | |
25 | - "angular-route": "^1.7.5", | |
26 | - "bootstrap": "^4.1.3", | |
27 | - "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git", | |
28 | - "foca-modal-remito": "git+https://debo.suite.repo/modulos-npm/foca-modal-remito.git", | |
29 | - "font-awesome": "^4.7.0", | |
30 | - "gulp": "^3.9.1", | |
31 | - "gulp-angular-templatecache": "^2.2.5", | |
32 | - "gulp-clean": "^0.4.0", | |
23 | + "angular": "1.7.5", | |
24 | + "angular-ladda": "0.4.3", | |
25 | + "angular-route": "1.7.5", | |
26 | + "bootstrap": "4.1.3", | |
27 | + "foca-directivas": "git+ssh://git@debonline.dyndns.org:npm/foca-directivas.git", | |
28 | + "foca-modal-remito": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-remito.git", | |
29 | + "font-awesome": "4.7.0", | |
30 | + "gulp": "3.9.1", | |
31 | + "gulp-angular-templatecache": "2.2.5", | |
32 | + "gulp-clean": "0.4.0", | |
33 | 33 | "gulp-concat": "^2.6.1", |
34 | - "gulp-connect": "^5.6.1", | |
35 | - "gulp-htmlmin": "^5.0.1", | |
36 | - "gulp-jshint": "^2.1.0", | |
37 | - "gulp-rename": "^1.4.0", | |
38 | - "gulp-replace": "^1.0.0", | |
39 | - "gulp-sequence": "^1.0.0", | |
40 | - "gulp-uglify": "^3.0.1", | |
41 | - "gulp-uglify-es": "^1.0.4", | |
42 | - "jasmine-core": "^3.3.0", | |
43 | - "jquery": "^3.3.1", | |
44 | - "jshint": "^2.9.6", | |
34 | + "gulp-connect": "5.6.1", | |
35 | + "gulp-htmlmin": "5.0.1", | |
36 | + "gulp-jshint": "2.1.0", | |
37 | + "gulp-rename": "1.4.0", | |
38 | + "gulp-replace": "1.0.0", | |
39 | + "gulp-sequence": "1.0.0", | |
40 | + "gulp-uglify": "3.0.1", | |
41 | + "gulp-uglify-es": "1.0.4", | |
42 | + "jasmine-core": "3.3.0", | |
43 | + "jquery": "3.3.1", | |
44 | + "jshint": "2.9.6", | |
45 | 45 | "ladda": "1.0.6", |
46 | - "pre-commit": "^1.2.2", | |
47 | - "pump": "^3.0.0", | |
48 | - "ui-bootstrap4": "^3.0.5" | |
46 | + "pre-commit": "1.2.2", | |
47 | + "pump": "3.0.0", | |
48 | + "ui-bootstrap4": "3.0.5" | |
49 | 49 | } |
50 | 50 | } |
src/js/controller.js
1 | 1 | angular.module('focaHojaRuta') |
2 | 2 | .controller('listaHojaRutaCtrl', |
3 | - ['$scope', '$filter', '$uibModal', 'hojaRutaService', 'focaSeguimientoService', | |
4 | - function($scope, $filter, $uibModal, hojaRutaService, focaSeguimientoService) { | |
3 | + ['$scope', '$location', '$filter', '$uibModal', 'hojaRutaService', 'focaSeguimientoService', | |
4 | + function($scope, $location, $filter, $uibModal, hojaRutaService, focaSeguimientoService) { | |
5 | 5 | hojaRutaService.getHojasRuta().then(function(res) { |
6 | 6 | var hojaRuta = res.data.pop(); |
7 | 7 | $scope.hojasRuta = hojaRuta; |
... | ... | @@ -76,6 +76,9 @@ angular.module('focaHojaRuta') |
76 | 76 | |
77 | 77 | return relleno; |
78 | 78 | }; |
79 | + $scope.salir = function() { | |
80 | + $location.path('/'); | |
81 | + }; | |
79 | 82 | } |
80 | 83 | ]); |
81 | 84 |
src/views/lista-hoja-ruta.html