aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorKhurshid Fayzullaev <khurshidfayzullaev@yahoo.com>2014-04-10 10:48:49 -0400
committerKhurshid Fayzullaev <khurshidfayzullaev@yahoo.com>2014-04-10 10:48:49 -0400
commit6a3046099664e6003cb2b41752e3c8e3ea3f3d07 (patch)
treea9e1dd45aea8392b4977340ab81c97e3f9a72778 /src/org
parent438ee014d2b786e634049068b3e866e357e1aafe (diff)
parent37e994bafc08c1a54a4b996d4b1d568ff09f89be (diff)
downloadtrackermap-web-6a3046099664e6003cb2b41752e3c8e3ea3f3d07.tar.gz
trackermap-web-6a3046099664e6003cb2b41752e3c8e3ea3f3d07.tar.bz2
trackermap-web-6a3046099664e6003cb2b41752e3c8e3ea3f3d07.zip
Merge pull request #2 from khfayzullaev/patch-1
Merging Patch 1
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/web/client/controller/DeviceController.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/web/client/controller/DeviceController.java b/src/org/traccar/web/client/controller/DeviceController.java
index 94c81ed3..b884537b 100644
--- a/src/org/traccar/web/client/controller/DeviceController.java
+++ b/src/org/traccar/web/client/controller/DeviceController.java
@@ -28,6 +28,7 @@ import com.google.gwt.core.client.GWT;
import com.sencha.gxt.data.shared.ListStore;
import com.sencha.gxt.widget.core.client.ContentPanel;
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.HideEvent;
@@ -84,6 +85,10 @@ public class DeviceController implements ContentController, DeviceView.DeviceHan
public void onSuccess(Device result) {
deviceStore.add(result);
}
+ @Override
+ public void onFailure(Throwable caught) {
+ new AlertMessageBox("Error", "Device with this Unique ID already exists").show();
+ }
});
}
}).show();
@@ -99,6 +104,10 @@ public class DeviceController implements ContentController, DeviceView.DeviceHan
public void onSuccess(Device result) {
deviceStore.update(result);
}
+ @Override
+ public void onFailure(Throwable caught) {
+ new AlertMessageBox("Error", "Device with this Unique ID already exists").show();
+ }
});
}
}).show();