Skip to content
Snippets Groups Projects
Commit 9d5859b0 authored by juanf's avatar juanf
Browse files

Bugfixes

SVN: 31415
parent 9d70f2a1
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ function DilutionWidget(containerId, serverFacade, isEnabled) { ...@@ -50,7 +50,7 @@ function DilutionWidget(containerId, serverFacade, isEnabled) {
fieldset.hide(); fieldset.hide();
//Update Values //Update Values
var stateObj = JSON.parse(stateField.val()); var stateObj = JSON.parse((!stateField.val())?"{}":stateField.val());
var tBody = $("#" + _this._widgetTableId).children()[1]; var tBody = $("#" + _this._widgetTableId).children()[1];
for(var rowNum = 0; rowNum < (tBody.rows.length - 3); rowNum++) { for(var rowNum = 0; rowNum < (tBody.rows.length - 3); rowNum++) {
var row = $(tBody.rows[rowNum]); var row = $(tBody.rows[rowNum]);
...@@ -95,7 +95,7 @@ function DilutionWidget(containerId, serverFacade, isEnabled) { ...@@ -95,7 +95,7 @@ function DilutionWidget(containerId, serverFacade, isEnabled) {
lot.children.forEach(function(conjugatedClone) { lot.children.forEach(function(conjugatedClone) {
var metalMass = conjugatedClone.properties["METAL_MASS"]; var metalMass = conjugatedClone.properties["METAL_MASS"];
var predefinedMass = _this._predefinedMass[rowNumber] + ""; var predefinedMass = _this._predefinedMass[rowNumber] + "";
if(predefinedMass === metalMass) { if(predefinedMass === metalMass && $.inArray(protein, proteins) === -1) {
proteins.push(protein); proteins.push(protein);
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment