Suggestion: "Mark read" button at end of unread items

by m.rambaldi, Saturday, April 20, 2013, 12:24 (3883 days ago)

Hi all,

after using selfoss for a few days now, there is a feature I'd like to have especially in mobile view:

When viewing unread items in mobile view (where the buttons are not visible on the screen) one has to scroll the whole list back to the top, press the settings button and then the "mark all read" button.

It would be nice to have a "mark all read" button as last item of the list of unread items.

Suggestion: "Mark read" button at end of unread items

by m.rambaldi, Tuesday, April 23, 2013, 11:28 (3880 days ago) @ m.rambaldi

found it myself, it's a quick and dirty patch:

in file "controllers\Index.php" in function "loadItems"

change

if($itemDao->hasMore())
$itemsHtml .= '<div class="stream-more"><span>'. \F3::get('lang_more').'</span></div>';

to

if($itemDao->hasMore()) {
$itemsHtml .= '<div class="stream-more"><span>'. \F3::get('lang_more').'</span></div>';
}
else {
$itemsHtml .= '<div id="nav-mark" onclick="$(\'#nav-mark\').click();">' . \F3::get('lang_markread') . '</div>';
}

This will add a "mark read" button at the end of each list of items.

RSS Feed of thread
powered by my little forum