diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-19 22:09:27 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-19 22:09:27 +1300 |
commit | 0e766c9024e2457320f64353e29bb5e2d8294b28 (patch) | |
tree | 35965494f8f52fefa994c397198d18854bd51a43 /src/org/traccar/web/client/Traccar.java | |
parent | 9f80fe9b90d9ddb1132c139072cfe3bac5a42491 (diff) | |
download | trackermap-web-0e766c9024e2457320f64353e29bb5e2d8294b28.tar.gz trackermap-web-0e766c9024e2457320f64353e29bb5e2d8294b28.tar.bz2 trackermap-web-0e766c9024e2457320f64353e29bb5e2d8294b28.zip |
Add application settings
Diffstat (limited to 'src/org/traccar/web/client/Traccar.java')
-rw-r--r-- | src/org/traccar/web/client/Traccar.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/org/traccar/web/client/Traccar.java b/src/org/traccar/web/client/Traccar.java index 8fa67ecd..d775bb4a 100644 --- a/src/org/traccar/web/client/Traccar.java +++ b/src/org/traccar/web/client/Traccar.java @@ -16,6 +16,8 @@ package org.traccar.web.client; import org.traccar.web.client.controller.LoginController; +import org.traccar.web.client.model.BaseAsyncCallback; +import org.traccar.web.shared.model.ApplicationSettings; import com.google.gwt.core.client.EntryPoint; @@ -23,7 +25,13 @@ public class Traccar implements EntryPoint, LoginController.LoginHandler { @Override public void onModuleLoad() { - new LoginController().login(this); + Application.getDataService().updateApplicationSettings(null, new BaseAsyncCallback<ApplicationSettings>() { + @Override + public void onSuccess(ApplicationSettings result) { + ApplicationContext.getInstance().setApplicationSettings(result); + new LoginController().login(Traccar.this); + } + }); } @Override |