Skip to content

Commit

Permalink
Echidna profile for REC with candidate amendments (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak authored Sep 5, 2022
1 parent 0fac679 commit d7c9e1b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
10 changes: 10 additions & 0 deletions lib/profiles/TR/Recommendation/REC-Echidna.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as todaysDate from '../../../rules/echidna/todays-date.js';
import { insertAfter } from '../../profileUtil.js';
import { rules as baseRules } from './REC.js';

export { config } from './REC.js';
export const name = 'REC-Echidna';

export const rules = insertAfter(baseRules, 'sotd.process-document', [
todaysDate,
]);
12 changes: 10 additions & 2 deletions public/js/specberus.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,18 @@ jQuery.extend({
function disableProfilesIfNeeded(checkbox) {
if (checkbox.prop('checked')) {
$profileOptions.each((_, el) => {
if (!['WD', 'NOTE', 'DNOTE', 'CR', 'CRD'].includes($(el).val()))
if (
!['WD', 'NOTE', 'DNOTE', 'CR', 'CRD', 'REC'].includes(
$(el).val()
)
)
$(el).prop('disabled', true);
});
if (!['WD', 'NOTE', 'DNOTE', 'CR', 'CRD'].includes($profile.val()))
if (
!['WD', 'NOTE', 'DNOTE', 'CR', 'CRD', 'REC'].includes(
$profile.val()
)
)
$profile.val('');
} else
$profileOptions.each((_, el) => {
Expand Down

0 comments on commit d7c9e1b

Please sign in to comment.