Commit 52d9ef3c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

verify overlay type in frontend

parent 12c3451e
Pipeline #13331 passed with stage
in 9 minutes and 40 seconds
minerva (13.2.0) stable; urgency=medium
* Bug fix:search by drugs didn't check synonyms in chembl database
* Bug fix: search by drugs didn't check synonyms in chembl database
* Bug fix: verification of overlay type added (#917)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 21 Aug 2019 17:00:00 +0200
......
......@@ -163,6 +163,9 @@ AddOverlayDialog.prototype.processFile = function (file) {
descriptionInput.value = overlay.getDescription();
}
if (overlay.getType() !== undefined) {
if ($("option[value='" + overlay.getType() + "']", typeSelect).length === 0) {
GuiConnector.warn("Invalid type: " + overlay.getType());
}
typeSelect.val(overlay.getType());
}
if (overlayParser.containsMixedNewLineCharacters(evt.target.result)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment