Uncheck optional modules by default

This commit is contained in:
Starbeamrainbowlabs 2016-03-26 14:07:06 +00:00
parent 8d7cdb3ce8
commit 8ebc66b1e8
1 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,9 @@
$module_index = json_decode(file_get_contents("module_index.json"));
foreach($module_index as $module)
{
$checkedText = (isset($module->optional) && $module->optional === true) ? "" : " checked";
echo("<tr>
<td><input type='checkbox' id='$module->id' checked /></td>
<td><input type='checkbox' id='$module->id'$checkedText /></td>
<td><label for='$module->id'>$module->name</label></td>
<td>$module->description</td>
<td>$module->author</td>
@ -87,4 +88,4 @@
</script>
</body>
</html>
</html>