selfoss
selfoss copied to clipboard
added 'read up to here' button on entries in articleList, moved open utton to top of toolbar (was to close to readuptohere)
a feature I found very useful in NEWSIFY: mark read "up to here" hacked into my v2.18 installation of Selfoss and wanted to share it as a suggested feature
This is a good idea. This may be an answer to #1021 .
As for the code, I would suggest not including history comments in the source and less code duplication (creating selfoss.dbOnline.mark(ids)
and selfoss.ui.mark(ids)
may help though handling the possible rollback may be tricky). Hopefully I can fix that later if this get accepted.
Feel free to strip comments etc., I included them for peer review only.
Sorry, forgot to reply here.
I like this idea and occasionally wanted this myself but I wanted to avoid cluttering the interface with more buttons so until we come up with a way to let users customize the buttons (perhaps extend the share
config to other buttons as well) I would suggest users to add the snippet to their user.js
file and am concerned about the code duplication.
I think selfoss.dbOnline.mark(ids)
would be very useful since the markVisibleRead
is already beyond tolerable complexity.