Commit e5eba1550d37482d3429dd177910bb1f26894897
1 parent
d9f4843a80
Exists in
master
no muestra icono de arrastrar en remitos ya cargados
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/js/osm-directive.js
... | ... | @@ -43,10 +43,6 @@ angular.module('focaLogisticaPedidoRuta').directive('focaLogistica', function() |
43 | 43 | observacion += '<br/>Distancia a casa central: ' + |
44 | 44 | marcador.distancia + 'km'; |
45 | 45 | } |
46 | - observacion += '<br/>'; | |
47 | - observacion += '<i class="fa fa-map-marker fa-3x" aria-hidden="true"'+ | |
48 | - 'class="form-control" ondragend="dropEnd()" ondragstart=\'drag(event, '+ | |
49 | - JSON.stringify(marcador)+')\' draggable="true"></i>(Arrastrar icono)'; | |
50 | 46 | var icon; |
51 | 47 | if(marcador.notaPedido.remito.idUsuarioProceso) { |
52 | 48 | //Asignado ROJO |
... | ... | @@ -59,6 +55,10 @@ angular.module('focaLogisticaPedidoRuta').directive('focaLogistica', function() |
59 | 55 | shadowSize: [41, 41] |
60 | 56 | }); |
61 | 57 | }else { |
58 | + observacion += '<br/>'; | |
59 | + observacion += '<i class="fa fa-map-marker fa-3x" aria-hidden="true"'+ | |
60 | + 'class="form-control" ondragend="dropEnd()" ondragstart=\'drag(event, '+ | |
61 | + JSON.stringify(marcador)+')\' draggable="true"></i>(Arrastrar icono)'; | |
62 | 62 | //Sin asignar VERDE |
63 | 63 | icon = new L.Icon({ |
64 | 64 | iconUrl: 'img/marker-icon-2x-green.png', |