Commit 26167657 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

bugfix time array

parent 136dd04a
......@@ -553,11 +553,11 @@ var EXTrajectory = (function (_super) {
EXTrajectory.prototype.changeFn = function (changeCard) {
var self = this;
if ((typeof changeCard.from !== 'undefined') && (typeof changeCard.to !== 'undefined')) {
var from = changeCard.from;
var to = changeCard.to;
var from = changeCard.from.clone();
var to = changeCard.to.clone();
if (from.isBefore(to)) {
self.time = [];
self.time.push(from.valueOf());
// self.time.push(from.valueOf());
var t = from;
while (t.isBefore(to)) {
t = t.add(15, 'm');
......
......@@ -553,11 +553,11 @@ var EXTrajectory = (function (_super) {
EXTrajectory.prototype.changeFn = function (changeCard) {
var self = this;
if ((typeof changeCard.from !== 'undefined') && (typeof changeCard.to !== 'undefined')) {
var from = changeCard.from;
var to = changeCard.to;
var from = changeCard.from.clone();
var to = changeCard.to.clone();
if (from.isBefore(to)) {
self.time = [];
self.time.push(from.valueOf());
// self.time.push(from.valueOf());
var t = from;
while (t.isBefore(to)) {
t = t.add(15, 'm');
......
This diff is collapsed.
......@@ -627,11 +627,11 @@ class EXTrajectory extends STWkit.AccordionCard {
public changeFn(changeCard) {
var self = this;
if ((typeof changeCard.from !== 'undefined') && (typeof changeCard.to !== 'undefined')) {
var from = changeCard.from;
var to = changeCard.to;
var from = changeCard.from.clone();
var to = changeCard.to.clone();
if (from.isBefore(to)) {
self.time = [];
self.time.push(from.valueOf());
// self.time.push(from.valueOf());
var t = from;
while (t.isBefore(to)) {
t = t.add(15,'m');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment