Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions app/controllers/occurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,9 @@ occurrenceApp.controller('IndexCtrl', function ($scope, $http,Occurrence) {
if ($scope.currentRouteWatcher) {
$scope.startRoute(null, true);
}

};


/**
* startPathOccurrence init GPS watcher and makes the relation to the instances
* @param int id is the type of instance referenced in $scope.instances
Expand Down Expand Up @@ -888,12 +888,11 @@ occurrenceApp.controller('IndexCtrl', function ($scope, $http,Occurrence) {
if(newRouteName == "") {
newRouteName = buildDate;
}
else {
newRouteName += " " + dt.getDate() + '/' + dt.getMonth() + '/' + dt.getFullYear();
}

var route = {
id: dt.getTime(),
name: newRouteName,
date: buildDate,
subRoutes : [],
occurrences: [],
options: {}
Expand Down