Skip to content

Commit

Permalink
Disable the cursor pointer on the Core Module (NamelessMC#3291)
Browse files Browse the repository at this point in the history
Co-authored-by: Tadhg Boyle <26070412+aberdeener@users.noreply.github.com>
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
  • Loading branch information
3 people authored Apr 4, 2023
1 parent aa6c2d3 commit c4a7d43
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/installation/steps/select_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
$_SESSION['modules_selected'] = true;
Redirect::to('?step=conversion');
}

function pointer($module) {
if ($module !== 'Core') {
return 'cursor: pointer;';
}

return '';
}
?>

<form action="" method="post">
Expand All @@ -49,7 +57,7 @@

<div class="ui two cards">
<?php foreach ($all_modules as $module => $description) { ?>
<div class="ui card fluid" data-module-name="<?php echo $module ?>" style="cursor: pointer; user-select: none; pointer-events: all !important;" onclick="toggleModule(this)">
<div class="ui card fluid" data-module-name="<?php echo $module ?>" style="<?php echo pointer($module); ?> user-select: none; pointer-events: all !important;" onclick="toggleModule(this)">
<input type="hidden" name="modules[<?php echo $module ?>]" value="1">
<div class="content">
<div class="header">
Expand Down

0 comments on commit c4a7d43

Please sign in to comment.