Commit 346f25f5 authored by jlopez's avatar jlopez
Browse files

Fix manager selection

parent 6922928d
......@@ -655,17 +655,19 @@ foreach ($db->getAllSectionParent() as $s){
<?php
foreach($data_distribs as $value){
echo 'if(selectedOSRelease.includes("'.$value->name.'")) {';
echo "if(selectedOSRelease.includes(\"$value->name\")) {\n";
echo 'for(var i = 0; i < options.length; i++) {';
echo 'if(options[i].value == "'.$value->version.'") {';
echo "document.getElementById('selectedInstaller').getElementsByTagName('option')[i].selected = 'selected'";
echo '}';
echo '}';
echo "for(var i = 0; i < options.length; i++) {\n";
echo "if(options[i].value == \"$value->manager\") {\n";
echo "document.getElementById('selectedInstaller').getElementsByTagName('option')[i].selected = 'selected'\n";
echo "}\n";
echo "}\n";
echo '}';
echo "}\n";
}
?>
......
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