Skip to content

Commit 6e0bbde

Browse files
attach ND choice, to SA choice
1 parent 3a461d7 commit 6e0bbde

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/scripts.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let rawStatePathRoutes = [
1010

1111
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/yes/allow-derivatives/yes/share-alike/no/confirmation+ownership+read+revocation/(attribution-details)&license=cc-by',
1212
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/yes/allow-derivatives/yes/share-alike/yes/confirmation+ownership+read+revocation/(attribution-details)&license=cc-by-sa',
13-
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/yes/allow-derivatives/no/share-alike/no/confirmation+ownership+read+revocation/(attribution-details)&license=cc-by-nd',
13+
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/yes/allow-derivatives/no/confirmation+ownership+read+revocation/(attribution-details)&license=cc-by-nd',
1414
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/no/allow-derivatives/yes/share-alike/no/confirmation+ownership+read+revocation/(attribution-details)&license=cc-by-nc',
1515
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/no/allow-derivatives/yes/share-alike/yes/confirmation+ownership+read+revocation/(attribution-details)&license=cc-by-nc-sa',
1616
'do-you-know-which-license-you-need/no/require-attribution/yes/allow-commercial-use/no/allow-derivatives/no/confirmation+ownership+read+revocation/(attribution-details)&license=cc-by-nc-nd',
@@ -262,6 +262,11 @@ fieldsets.forEach((element, index) => {
262262

263263
//document.querySelector('#confirmation').classList.remove('disable');
264264
}
265+
266+
// tie SA to ND choice
267+
if (state.parts[4] == 'allow-derivatives/no/') {
268+
document.querySelector('#share-alike').classList.add('disable');
269+
}
265270

266271
});
267272

0 commit comments

Comments
 (0)