From 7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 3 Aug 2013 19:46:13 +1200 Subject: Message when no results (fix #94) --- src/org/traccar/web/client/controller/ArchiveController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/web/client/controller/ArchiveController.java b/src/org/traccar/web/client/controller/ArchiveController.java index 553e6746..9a0c18d0 100644 --- a/src/org/traccar/web/client/controller/ArchiveController.java +++ b/src/org/traccar/web/client/controller/ArchiveController.java @@ -74,7 +74,11 @@ public class ArchiveController implements ContentController, ArchiveView.Archive @Override public void onSuccess(List result) { positionStore.clear(); - positionStore.addAll(result); + if (result.isEmpty()) { + new AlertMessageBox("Error", "No results found for selected period").show(); + } else { + positionStore.addAll(result); + } } }); } else { -- cgit v1.2.3