Fix delete

- Fix delete button in UI
- Close connection in DAO
This commit is contained in:
Amanda 2019-10-10 07:56:29 +05:30
parent 277b114f9c
commit 7b7d47a2bf
2 changed files with 5 additions and 0 deletions

View File

@ -605,6 +605,8 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
"' devices";
log.error(msg, e);
throw new DeviceManagementException(msg, e);
} finally {
DeviceManagementDAOFactory.closeConnection();
}
}

View File

@ -932,6 +932,9 @@ function attachDeviceEvents() {
}
}
$(modalPopupContent).html($('#delete-device-modal-content').html());
showPopup();
$("a#delete-device-yes-link").click(function () {
deleteDevices(deviceIdentifiers);
});