From 2988629a563ad906d9c4307ccf0daf86d8fef210 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 27 Jul 2020 22:38:52 -0700 Subject: First event on the top --- web/app/controller/Root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index c1700aa..935b1f1 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -295,7 +295,7 @@ Ext.define('Traccar.controller.Root', { var i, store, device; store = Ext.getStore('Events'); for (i = 0; i < array.length; i++) { - store.add(array[i]); + store.insert(0, array[i]); device = Ext.getStore('Devices').getById(array[i].deviceId); if (device) { if (this.soundPressed()) { -- cgit v1.2.3