Skip to content

Commit 03f1cd9

Browse files
author
William Bagayoko
committed
editMarker dblclick -> submitTodo
1 parent d3323a8 commit 03f1cd9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: 04-Todo-Maps.html

+9
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,15 @@ <h3>{{infow.data.title}}</h3>
275275
}
276276
google.maps.event.addListener(editMarker, 'drag', editMarkerDragCallback($scope, editMarker));
277277

278+
function editMarkerDblClickCallback (scope) {
279+
return function () {
280+
scope.$apply(function () {
281+
scope.submitTodo();
282+
});
283+
};
284+
}
285+
google.maps.event.addListener(editMarker, 'dblclick', editMarkerDblClickCallback($scope));
286+
278287
$scope.$watch('editTodo.lat + editTodo.lng', function (newValue, oldValue) {
279288
if (newValue !== oldValue) {
280289
var pos = editMarker.getPosition(),

0 commit comments

Comments
 (0)