-
Notifications
You must be signed in to change notification settings - Fork 0
/
ids.js
11 lines (10 loc) · 907 Bytes
/
ids.js
1
2
3
4
5
6
7
8
9
10
11
function getTermGradeId(subjectName, term) { return `${subjectName}-${term}` }
function getTermGradeEnabledId(subjectName, term) { return `${getTermGradeId(subjectName, term)}-enabled`; }
function getTermGradeNumberId(subjectName, term) { return `${getTermGradeId(subjectName, term)}-grade`; }
function getTermCountId(subjectName) { return `${subjectName}-totalterms`; }
function getTermCountTextId(subjectName) { return `${getTermCountId(subjectName)}-value`; }
function getTermPointCountId(subjectName) { return `${subjectName}-terms-totalpoints`; }
function getExamPointCountId(subjectName) { return `${subjectName}-exams-totalpoints`; }
function getExamGradeEnabledId(subjectName, gradeName) { return `${subjectName}-${gradeName}-enabled`; }
function getExamGradeNumberId(subjectName, gradeName) { return `${subjectName}-${gradeName}-grade`; }
// vim:foldmethod=marker:foldlevel=0:nowrap:textwidth=0: