From 91613f02627eb8cd948e536a082f1b54b682f82f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 1 Aug 2015 01:00:55 +1200 Subject: Fix periodic reporting command --- web/app/view/command/CommandDialog.js | 2 +- web/app/view/command/CommandDialogController.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'web/app') diff --git a/web/app/view/command/CommandDialog.js b/web/app/view/command/CommandDialog.js index 7f4b3c592..a8da68380 100644 --- a/web/app/view/command/CommandDialog.js +++ b/web/app/view/command/CommandDialog.js @@ -43,7 +43,7 @@ Ext.define('Traccar.view.command.CommandDialog', { } }, { xtype: 'fieldcontainer', - reference: 'paramPositionFix', + reference: 'paramPositionPeriodic', name: 'other', hidden: true, diff --git a/web/app/view/command/CommandDialogController.js b/web/app/view/command/CommandDialogController.js index e6275024a..28c146187 100644 --- a/web/app/view/command/CommandDialogController.js +++ b/web/app/view/command/CommandDialogController.js @@ -28,8 +28,8 @@ Ext.define('Traccar.view.command.CommandDialogController', { form.updateRecord(); var record = form.getRecord(); - if (record.get('type') === 'positionFix') { - other = this.lookupReference('paramPositionFix'); + if (record.get('type') === 'positionPeriodic') { + other = this.lookupReference('paramPositionPeriodic'); var value = other.down('numberfield[name="frequency"]').getValue(); value *= other.down('combobox[name="unit"]').getValue(); -- cgit v1.2.3