diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-03 19:46:13 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-03 19:46:13 +1200 |
commit | 7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f (patch) | |
tree | b79fd14db9b60dd093ddc9fcb1f0557609ce7306 /src/org/traccar/web | |
parent | ec90f70efd0e65d54cff98683973a0a2cf38ca74 (diff) | |
download | trackermap-web-7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f.tar.gz trackermap-web-7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f.tar.bz2 trackermap-web-7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f.zip |
Message when no results (fix #94)
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r-- | src/org/traccar/web/client/controller/ArchiveController.java | 6 |
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 { |