aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-03 19:46:13 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-03 19:46:13 +1200
commit7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f (patch)
treeb79fd14db9b60dd093ddc9fcb1f0557609ce7306 /src
parentec90f70efd0e65d54cff98683973a0a2cf38ca74 (diff)
downloadtrackermap-web-7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f.tar.gz
trackermap-web-7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f.tar.bz2
trackermap-web-7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f.zip
Message when no results (fix #94)
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/web/client/controller/ArchiveController.java6
1 files changed, 5 insertions, 1 deletions
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<Position> result) {
positionStore.clear();
- positionStore.addAll(result);
+ if (result.isEmpty()) {
+ new AlertMessageBox("Error", "No results found for selected period").show();
+ } else {
+ positionStore.addAll(result);
+ }
}
});
} else {