From a4bfaa60c8dbf3100a6fdc6c13a2c7998b7e1fc3 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Fri, 26 Feb 2016 14:52:28 +0000 Subject: [PATCH] SSDM-3212 : Retire plate view SVN: 35749 --- .../html/js/config/installations/NexusProfile.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/installations/NexusProfile.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/installations/NexusProfile.js index 2d3051ea8c8..8dcda148441 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/installations/NexusProfile.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/installations/NexusProfile.js @@ -34,8 +34,16 @@ $.extend(NexusProfile.prototype, StandardProfile.prototype, { mainController.serverFacade.customELNApi({ "plate_identifier" : plate_identifier, "expiry_date" : expiry_date - }, function(result) { - Util.unblockUI(); + }, function(error, result) { + if(!error) { + Util.showSuccess("Plate Retired", function() { + Util.unblockUI(); + }); + } else { + Util.showError(error, function() { + Util.unblockUI(); + }); + } }, "plate_version_service"); } var $retireButton = FormUtil.getButtonWithText("Retire Plate!", retireAction, "btn-warning"); -- GitLab