Skip to content

Commit 7007545

Browse files
authored
Merge pull request #46 from RRZE-Webteam/dev
Dev
2 parents 8168bb9 + da19bad commit 7007545

File tree

8 files changed

+10
-14
lines changed

8 files changed

+10
-14
lines changed

build/tos.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/tos.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/TOS/Endpoint.php

-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ protected static function setComplianceContentList(&$options)
254254
$list .= '<li>' . $optionsField[$key] . '</li>';
255255
}
256256
}
257-
$options['non_accessible_content_helper'] = $contentHelper;
258257
$options['accessibility_non_accessible_content_list'] = $list ? '<ul>' . $list . '</ul>' : '';
259258
}
260259
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rrze-legal",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"main": "rrze-legal.php",
55
"scripts": {
66
"start": "webpack --mode=development --watch",

rrze-legal.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: RRZE Legal
55
Plugin URI: https://gitlab.rrze.fau.de/rrze-webteam/rrze-legal
66
Description: Legal Mandatory Information & GDPR.
7-
Version: 2.0.1
7+
Version: 2.0.2
88
Author: RRZE Webteam
99
Author URI: https://blogs.fau.de/webworking/
1010
License: GNU General Public License Version 3

src/tos/tos.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,17 @@ jQuery(document).ready(function ($) {
4242
}
4343

4444
function accessibilityHelperSection() {
45-
let inputHelper = `${legalSettings.optionName}[accessibility_statement_non_accessible_content_helper]`;
45+
let inputName = `${legalSettings.optionName}[accessibility_statement_non_accessible_content_helper]`;
4646
let input = $(
47-
`input[name='${inputHelper}']:checked`,
47+
`input[name='${inputName}']:checked`,
4848
"#rrze-legal-accessibility"
4949
).val();
50-
let inputList = `${legalSettings.optionName}[accessibility_statement_non_accessible_content_list][]`;
50+
let inputList =
51+
"[id^=rrze_legal_accessibility_statement_non_accessible_content_list]";
5152
if ("1" === input) {
52-
$(`input[name='${inputList}']`).parents("tr").hide();
53+
$(`${inputList}`).parents("tr").hide();
5354
} else {
54-
$(`input[name='${inputList}']`).parents("tr").show();
55+
$(`${inputList}`).parents("tr").show();
5556
}
5657
}
5758

templates/tos/accessibility-de.html

-2
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ <h2>Bekannte Probleme bei der Barrierefreiheit</h2>
6161
</p>
6262
{{/accessibility_conformity_filled}}
6363

64-
{{!non_accessible_content_helper}}
6564
<h3>Nicht barrierefrei zugängliche Inhalte</h3>
6665
{{=accessibility_non_accessible_content_list}}
6766
{{=accessibility_statement_non_accessible_content_text}}
68-
{{/!non_accessible_content_helper}}
6967

7068
{{accessibility_statement_non_accessible_content_reason}}
7169
<h3>Begründung</h3>

templates/tos/accessibility-en.html

-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ <h2>Known accessibility issues</h2>
5555
</p>
5656
{{/accessibility_conformity_filled}}
5757

58-
{{!non_accessible_content_helper}}
5958
<h3>Content that is not accessible to people with disabilities</h3>
6059
{{=accessibility_non_accessible_content_list}}
6160
{{=accessibility_statement_non_accessible_content_text}}
62-
{{/!non_accessible_content_helper}}
6361

6462
{{accessibility_statement_non_accessible_content_reason}}
6563
<h3>Reason</h3>

0 commit comments

Comments
 (0)