Skip to content

Commit

Permalink
Prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgs committed Jul 19, 2023
1 parent 8f1d3b6 commit e21efcf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Luke Stevens, Murdoch Children's Research Institute https://www.mcri.edu.au
********************************************************************************
## Summary

Adds a toggle switch to section headers on data entry and survey forms that can be used for showing and hiding all fields within the section.
Adds a toggle switches to section headers on data entry and survey forms that can be used for showing and hiding all fields within each section.

Demo: [https://redcap.link/section-collapse](https://redcap.link/section-collapse)

********************************************************************************
## Modes
Expand Down
2 changes: 1 addition & 1 deletion SectionCollapse.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function pageTop() {
} else {
$userModePref = $this->getUserSetting(static::USER_PREF_ACTION) ?? '';
}
$userModePref = (str_contains($modeOptions, $userModePref)) ? $userModePref : '';
$userModePref = (str_contains($modeOptions, $userModePref)) ? $this->escape($userModePref) : '';

$this->initializeJavascriptModuleObject();
?>
Expand Down
5 changes: 4 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Section Collapse",
"description": "Adds a toggle switch to section headers on data entry and survey forms that can be used for showing and hiding all fields within the section.",
"description": "Adds a toggle switches to section headers on data entry and survey forms that can be used for showing and hiding all fields within each section.<br>Demo: <a target=\"_blank\" href=\"https://redcap.link/section-collapse\">https://redcap.link/section-collapse</a>",
"namespace": "MCRI\\SectionCollapse",
"authors": [
{
Expand All @@ -10,6 +10,9 @@
}
],
"framework-version": 12,
"compatibility": {
"redcap-version-min": "13.1.2"
},
"auth-ajax-actions": [ "user-mode-preference" ],
"system-settings": [ ],
"project-settings": [
Expand Down

0 comments on commit e21efcf

Please sign in to comment.