Filter out courses I have already taken
moritz opened this issue · comments
I'd like the site to be even more useful for planning courses.
Thus I'd like to have a text area where I can copy&paste the courses list from the character page. When I do that, the following should happen:
- A new column appears, and for each row, it contains a checkmark if the course has appeared in the list that I pasted
- I can filter out courses I have already taken (for example by clicking a button or a checkbox
- Bonus points if the list is persisted through localstorage, and can be reset somehow.
I have already tried to implement that, but the problem with my naive approach is that dynatable
doesn't seem to like dynamically added content (the irony...), and removes the contents of extra columns that I add after dynatable has been loaded. (Maybe this can be worked around by adding the column at the start, and simply hiding it, or accepting an initially useless column? Dunno). My attempt so far is in the branch issue-4-failed
, from which you can likely salvage the logic to parse the pasted course list.
I'm also fine with getting rid of dynatable
if that makes things easier, as long as we have some way to do filtering and sorting in the browser.
I've started the tablesorter
branch, which is now in production. It uses tablesorter jquery plugin instead of dynatable. Maybe that'll make things easier.