Commit a25b4382 authored by jlopez's avatar jlopez
Browse files

Fix #14

parent 2bbaa8d2
......@@ -5,13 +5,14 @@ var PREVIEW = "";
$( "#generateButton" ).click(function() {
if((SELECTED_PACKAGES["CRAN"].length > 0 || SELECTED_PACKAGES["Bioconductor"].length > 0 ) && document.getElementById("selectedR").value == 0) {
alert("Please choose R version");
}
else if(SELECTED_PACKAGES["Python"].length > 0 && document.getElementById("selectedPython").value == 0) {
var valid = true;
if(SELECTED_PACKAGES["Python"].length > 0 && document.getElementById("selectedPython").value == 0) {
alert("Please choose Python version");
valid = false;
}
else {
if(valid) {
var preview = generate_container();
$("#containerPreview").text(PREVIEW);
}
......
......@@ -283,8 +283,8 @@ foreach ($db->getAllActiveSectionParent() as $s){
<label for="selectedR" class="font-weight-bold">R version :</label>
<select class="custom-select" id="selectedR">
<option value="0" selected="selected">None</option>
<option value="3.5" >3.5</option>
<option value="0" >None</option>
<option value="3.5" selected="selected">3.5</option>
</select>
</div>
......@@ -525,7 +525,7 @@ foreach ($db->getAllActiveSectionParent() as $s){
SELECTED_PACKAGES["Distribution"] = [];
document.getElementById("containDistributionPackages").innerHTML = '';
//document.getElementById("containDistributionPackages").innerHTML = '';
gestionPackageSelected();
}
......
Supports Markdown
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