From 426f54497ef28aec3e6feabba7d7f9a8ea15990c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 20 Apr 2014 16:37:12 +1200 Subject: Update GXT to 3.1.0 beta --- .../traccar/web/client/controller/SettingsController.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/org/traccar/web/client/controller/SettingsController.java') diff --git a/src/org/traccar/web/client/controller/SettingsController.java b/src/org/traccar/web/client/controller/SettingsController.java index 44d48f3d..c0e89047 100644 --- a/src/org/traccar/web/client/controller/SettingsController.java +++ b/src/org/traccar/web/client/controller/SettingsController.java @@ -35,6 +35,7 @@ import com.sencha.gxt.data.shared.ListStore; import com.sencha.gxt.widget.core.client.Dialog.PredefinedButton; import com.sencha.gxt.widget.core.client.box.AlertMessageBox; import com.sencha.gxt.widget.core.client.box.ConfirmMessageBox; +import com.sencha.gxt.widget.core.client.event.DialogHideEvent; import com.sencha.gxt.widget.core.client.event.HideEvent; public class SettingsController implements DeviceView.SettingsHandler { @@ -110,19 +111,19 @@ public class SettingsController implements DeviceView.SettingsHandler { @Override public void onRemove(final User user) { final ConfirmMessageBox dialog = new ConfirmMessageBox("Confirm", "Are you sure you want remove user?"); - dialog.addHideHandler(new HideEvent.HideHandler() { - @Override - public void onHide(HideEvent event) { - if (dialog.getHideButton() == dialog.getButtonById(PredefinedButton.YES.name())) { + dialog.addDialogHideHandler(new DialogHideEvent.DialogHideHandler() { + @Override + public void onDialogHide(DialogHideEvent event) { + if (event.getHideButton() == PredefinedButton.YES) { Application.getDataService().removeUser(user, new BaseAsyncCallback() { @Override public void onSuccess(User result) { userStore.remove(user); } }); - } - } - }); + } + } + }); dialog.show(); } -- cgit v1.2.3