Commit e40b4a34da74708bc8c6af994f133360f048b3e8
1 parent
7c6be3b387
Exists in
master
Eliminacion de codigo comentado
Showing
1 changed file
with
0 additions
and
34 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -210,39 +210,5 @@ angular.module('focaAbmChofer') |
210 | 210 | if (!chofer.id) { chofer.id = 0; } |
211 | 211 | $location.path('/chofer/' + chofer.id + '/' + chofer.idTransportista); |
212 | 212 | } |
213 | - | |
214 | - /*$timeout(function() {getLSChofer();}); | |
215 | - | |
216 | - function setearChofer(chofer) { | |
217 | - $scope.chofer = chofer; | |
218 | - $scope.$broadcast('addCabecera', { | |
219 | - label: 'Transportista:', | |
220 | - valor: $filter('rellenarDigitos')(chofer.idTransportista.chofer, 2) + ' - ' | |
221 | - }); | |
222 | - } | |
223 | - | |
224 | - function getLSChofer() { | |
225 | - var chofer = JSON.parse($localStorage.chofer || null); | |
226 | - | |
227 | - if (chofer) { | |
228 | - setearChofer(chofer); | |
229 | - delete $localStorage.chofer; | |
230 | - } | |
231 | - } | |
232 | - | |
233 | - $scope.$watch('chofer', function(newValue) { | |
234 | - focaBotoneraLateralService.setPausarData({ | |
235 | - label: 'chofer', | |
236 | - val: { | |
237 | - dni: newValue.dni, | |
238 | - idTransportista: newValue.idTransportista, | |
239 | - nombre: newValue.nombre, | |
240 | - telefono: newValue.telefono, | |
241 | - idTipoDocumento: newValue.idTipoDocumento, | |
242 | - id: newValue.id | |
243 | - } | |
244 | - }); | |
245 | - }, true);*/ | |
246 | - | |
247 | 213 | } |
248 | 214 | ]); |