Closed solymosi closed 7 years ago
@whisperity can you please review this PR and test it in your browser / Neptun? Thanks!
It looks good for me, I see all my subjects (though being in the end of the semester I really don't see that many rows) and tested it with a few of my friends' accounts.
There is one BIG problem though. My original idea was that if I select Hide completed subjects, the green rows from the select
also disappear, which does not happen right now in my tests.
Oops, my bad. Should be fixed in https://github.com/solymosi/npu/pull/11/commits/564fb924a6becbb6f8da161680e4401817ac3e27
Thanks a lot, merging...
Release complete 🎉
Original idea and implementation by @whisperity: #7 Related discussion: #5
Fixes and enhancements:
$.examSubjectFilterValid
, use$.examSubjectFilterCache === null
to signal an invalid or nonexistent filter cache.npu.parseSubjectCode
and reuse it to parse subject code out of the subject selector on the exams page, instead of matching for substrings. This parsing code has already been battle-tested and properly handles even weird subject codes with(
s and)
s in them.<option>
s.npu.initExamAutoList
to work with the updated code infixExamList
.