Commit 17a6adc1a55ad2b7b158585cf189579e7abef5b5

Authored by Jose Pinto
Exists in master

Merge branch 'master' into 'master'

Master(efernandez)

See merge request !1
src/js/osm-directive.js
... ... @@ -17,8 +17,8 @@ angular.module('focaLogisticaPedidoRuta').directive('foca', function() {
17 17  
18 18 angular.forEach($scope.marcadores, function(marcador) {
19 19 var observacion = '<i class="fa fa-map-marker fa-5x" aria-hidden="true"'+
20   - 'class="form-control" ondragend="dropEnd()" ondragstart="drag(event, '+
21   - JSON.stringify(marcador)+')" draggable="true"></i>';
  20 + 'class="form-control" ondragend="dropEnd()" ondragstart=\'drag(event, '+
  21 + JSON.stringify(marcador)+')\' draggable="true"></i>';
22 22 $scope.markers.push(
23 23 L.marker([marcador.latitud, marcador.longitud]).addTo($scope.map)
24 24 .bindPopup(observacion)
src/views/foca-logistica-pedido-ruta.html
... ... @@ -5,7 +5,7 @@
5 5 function drag(ev, marcador) {
6 6 marcador = JSON.stringify(marcador);
7 7 ev.dataTransfer.setData("marcador", marcador);
8   - var dom_el = document.getElementById('test');
  8 + var dom_el = document.getElementById('test');
9 9 var scope = angular.element(dom_el).scope();
10 10 scope.arrastra();
11 11 }