Commit 23492b452e6411d8c042f5233505d1dd57876e54
1 parent
d09f218da0
Exists in
master
fix comillas
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
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
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | ev.preventDefault(); |
4 | 4 | } |
5 | 5 | function drag(ev, marcador) { |
6 | - marcador = JSON.stringify(marcador); | |
6 | + marcador = JSON.stringify(marcador); | |
7 | 7 | ev.dataTransfer.setData("marcador", marcador); |
8 | 8 | var dom_el = document.getElementById('test'); |
9 | 9 | var scope = angular.element(dom_el).scope(); |