A free, self-hostable news aggregator…
Fix bug mark as read a complete feed
Marien Fressinaude6a25f78f5ab
diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtmlindex 9688a3273..76f53e8dc 100644--- a/app/layout/aside_flux.phtml+++ b/app/layout/aside_flux.phtml@@ -3,6 +3,8 @@<ul class="categories"><?php if ($this->loginOk) { ?>+ <form id="mark-read-aside" method="post" style="display: none"></form>+<li><div class="stick configure-feeds"><a class="btn btn-important" href="<?php echo _url ('configure', 'feed'); ?>"><?php echo Minz_Translate::t ('subscription_management'); ?></a>@@ -87,7 +89,13 @@<li class="separator"></li><li class="item"><a href="<?php echo _url ('configure', 'feed', 'id', '!!!!!!'); ?>"><?php echo Minz_Translate::t ('administration'); ?></a></li><li class="item"><a href="<?php echo _url ('feed', 'actualize', 'id', '!!!!!!'); ?>"><?php echo Minz_Translate::t ('actualize'); ?></a></li>- <li class="item"><a href="<?php echo _url ('entry', 'read', 'get', 'f_!!!!!!'); ?>"><?php echo Minz_Translate::t ('mark_read'); ?></a></li>+ <li class="item">+ <?php $confirm = $this->conf->reading_confirm ? 'confirm' : ''; ?>+ <button class="read_all as-link <?php echo $confirm; ?>"+ form="mark-read-aside"+ formaction="<?php echo _url('entry', 'read', 'get', 'f_!!!!!!'); ?>"+ type="submit"><?php echo _t('mark_read'); ?></button>+ </li><?php } ?></ul></script>diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtmlindex 03f496d1f..af2323325 100644--- a/app/layout/nav_menu.phtml+++ b/app/layout/nav_menu.phtml@@ -187,12 +187,12 @@Minz_Session::_param('markReadUrl', $markReadUrl);?>- <form id="mark-read" method="post" style="display: none"></form>+ <form id="mark-read-menu" method="post" style="display: none"></form><div class="stick" id="nav_menu_read_all"><?php $confirm = $this->conf->reading_confirm ? 'confirm' : ''; ?><button class="read_all btn <?php echo $confirm; ?>"- form="mark-read"+ form="mark-read-menu"formaction="<?php echo $markReadUrl; ?>"type="submit"><?php echo _t('mark_read'); ?></button>@@ -205,7 +205,7 @@<li class="item"><button class="as-link <?php echo $confirm; ?>"- form="mark-read"+ form="mark-read-menu"formaction="<?php echo $markReadUrl; ?>"type="submit"><?php echo $string_mark; ?></button></li>@@ -218,13 +218,13 @@?><li class="item"><button class="as-link <?php echo $confirm; ?>"- form="mark-read"+ form="mark-read-menu"formaction="<?php echo Minz_Url::display($mark_before_today); ?>"type="submit"><?php echo _t('before_one_day'); ?></button></li><li class="item"><button class="as-link <?php echo $confirm; ?>"- form="mark-read"+ form="mark-read-menu"formaction="<?php echo Minz_Url::display($mark_before_one_week); ?>"type="submit"><?php echo _t('before_one_week'); ?></button></li>diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtmlindex 1b15cc632..cea338364 100755--- a/app/views/helpers/pagination.phtml+++ b/app/views/helpers/pagination.phtml@@ -6,6 +6,8 @@Minz_Session::_param('markReadUrl', false);?>+<form id="mark-read-pagination" method="post" style="display: none"></form>+<ul class="pagination"><li class="item pager-next"><?php if (!empty($this->nextId)) { ?>@@ -19,7 +21,7 @@<?php } elseif ($markReadUrl) { ?><button id="bigMarkAsRead"class="as-link <?php echo $this->conf->reading_confirm ? 'confirm' : ''; ?>"- form="mark-read"+ form="mark-read-pagination"formaction="<?php echo $markReadUrl; ?>"type="submit"><?php echo _t('nothing_to_load'); ?><br />