diff options
| author | 2013-08-25 00:14:01 +0200 | |
|---|---|---|
| committer | 2013-08-25 13:08:53 +0200 | |
| commit | 2eea5bbdeb24636aafa2808273eefa362c452b57 (patch) | |
| tree | 1f5a018d415c1bd5512d8cb7472b7fa31280279d /app/views | |
| parent | 31a6a13268023a2db5eba2445ee6c7db4a6d9623 (diff) | |
Big area mark as read
Added a big area to mark all as read below the list of articles
Diffstat (limited to 'app/views')
| -rwxr-xr-x | app/views/helpers/pagination.phtml | 6 | ||||
| -rw-r--r-- | app/views/javascript/main.phtml | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtml index 80c0976ad..0018a951e 100755 --- a/app/views/helpers/pagination.phtml +++ b/app/views/helpers/pagination.phtml @@ -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> diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 24d66c1dc..3ac8b675b 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -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(); }); |
