Fix unpair device
authorArtem Motchanyi <a.motchanyi@samsung.com>
Fri, 4 Aug 2017 08:46:52 +0000 (11:46 +0300)
committerArtem Motchanyi <a.motchanyi@samsung.com>
Fri, 4 Aug 2017 08:46:52 +0000 (11:46 +0300)
control_app/iot-manager-dashboard/js/controllers/devices_controller.js

index 0cae7ed..3b437fc 100644 (file)
@@ -100,7 +100,8 @@ function DevicesController() {
         }
 
         Popup.show("Device unpaired", Popup.Icon.OK);
-        back(true);
+        htmlBuilder.removeOwnedDevice(content.data.id);
+        back();
     }
 
     //append device header html to the container 
@@ -178,7 +179,7 @@ function DevicesController() {
         }
 
         this.removeOwnedDevice = function(id) {
-            $(m_ownedDevicesList).find(".device[data-id=" + id + "]").hide("slow", function(){ $(this).remove(); });
+            $(m_ownedDevicesList).find(".device[data-id=" + id + "]").remove();
         }
     }
 }