summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-24 14:14:33 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-24 14:14:33 +0200
commite6a25f78f5abaea4dc0bfeba2bbb0a90119c624b (patch)
treef526327ec220ee0e1b98ace0d15783c6c862fada
parentbcb1e3750a9eee51070d602cc77def06f7f071c9 (diff)
Fix bug mark as read a complete feed
Related to https://github.com/marienfressinaud/FreshRSS/issues/599 Fix https://github.com/marienfressinaud/FreshRSS/issues/633
-rw-r--r--app/layout/aside_flux.phtml10
-rw-r--r--app/layout/nav_menu.phtml10
-rwxr-xr-xapp/views/helpers/pagination.phtml4
3 files changed, 17 insertions, 7 deletions
diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtml
index 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.phtml
index 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.phtml
index 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 />