Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 143: Line 143:
   if(simulations[simid].molecules[i].curve_show)
   if(simulations[simid].molecules[i].curve_show)
   {
   {
-
    var tmpval= document.getElementById('simbox_ctl_'+simid+'_'+i).value;
+
 
-
    if(!is_posint(tmpval))
+
-
    {
+
-
    alert('Invalid quantity set for molecule "'+simulations[simid].molecules[i].name+'".');
+
-
    return false;
+
-
    }
+
-
    simulations[simid].molecules[i].quantity= parseInt(tmpval);
+
   }
   }
   }
   }

Revision as of 21:58, 2 August 2013