mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-05 06:56:14 -05:00
Big area mark as read
Added a big area to mark all as read below the list of articles
This commit is contained in:
@@ -10,7 +10,11 @@
|
||||
<?php $params[$getteur] = $this->next; ?>
|
||||
<a id="load_more" href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo Translate::t ('load_more'); ?></a>
|
||||
<?php } else { ?>
|
||||
<?php echo Translate::t ('nothing_to_load'); ?>
|
||||
<div class="bigMarkAsRead">
|
||||
<p><?php echo Translate::t ('nothing_to_load'); ?></p>
|
||||
<p class="bigTick">✔</p>
|
||||
<p><?php echo Translate::t ('mark_all_read'); ?></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -380,6 +380,14 @@ function init_nav_entries() {
|
||||
});
|
||||
}
|
||||
|
||||
function init_bigMarkAsRead() {
|
||||
$('.bigMarkAsRead').click(function() {
|
||||
url = $(".nav_menu a.read_all").attr ("href");
|
||||
redirect (url, false);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready (function () {
|
||||
if(is_reader_mode()) {
|
||||
hide_posts = false;
|
||||
@@ -388,4 +396,5 @@ $(document).ready (function () {
|
||||
init_column_categories ();
|
||||
init_shortcuts ();
|
||||
init_nav_entries();
|
||||
init_bigMarkAsRead();
|
||||
});
|
||||
|
||||
@@ -491,6 +491,21 @@
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.bigMarkAsRead {
|
||||
background:#CCC;
|
||||
color:#FFF;
|
||||
cursor:pointer;
|
||||
height:32em;
|
||||
text-shadow: 0 -1px 0 #AAA;
|
||||
}
|
||||
.bigMarkAsRead:hover {
|
||||
background:#06C;
|
||||
}
|
||||
.bigTick {
|
||||
font-size:72pt;
|
||||
margin:32px 0 8px 0;
|
||||
}
|
||||
|
||||
/*** NOTIFICATION ***/
|
||||
.notification {
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user