summaryrefslogtreecommitdiff
path: root/app/views/helpers/javascript_vars.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-01-24 13:18:48 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-01-24 13:18:48 +0100
commit362dbad0b8ff0a29241f4e29556910dfaf7d66e5 (patch)
tree8a75e83012716cd9539ac1456c454bf4921513c2 /app/views/helpers/javascript_vars.phtml
parente664138bd2906942b793d85d4eaa6f8c01459509 (diff)
Several position problems, in particular in the global view
Multiple small bugs in global and reader views. Related to these old issues: https://github.com/FreshRSS/FreshRSS/issues/634 https://github.com/FreshRSS/FreshRSS/issues/275
Diffstat (limited to 'app/views/helpers/javascript_vars.phtml')
-rw-r--r--app/views/helpers/javascript_vars.phtml7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index adf0783f3..36d6e693d 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -4,8 +4,7 @@
$mark = FreshRSS_Context::$user_conf->mark_when;
$mail = Minz_Session::param('mail', false);
$auto_actualize = Minz_Session::param('actualize_feeds', false);
-$hide_posts = (FreshRSS_Context::$user_conf->display_posts ||
- Minz_Request::param('output') === 'reader');
+$hide_posts = !(FreshRSS_Context::$user_conf->display_posts || Minz_Request::actionName() === 'reader');
$s = FreshRSS_Context::$user_conf->shortcuts;
$url_login = Minz_Url::display(array(
@@ -19,7 +18,7 @@ $url_logout = Minz_Url::display(array(
echo 'var context={',
'auto_remove_article:', FreshRSS_Context::isAutoRemoveAvailable() ? 'true' : 'false', ',',
- 'hide_posts:', $hide_posts ? 'false' : 'true', ',',
+ 'hide_posts:', $hide_posts ? 'true' : 'false', ',',
'display_order:"', Minz_Request::param('order', FreshRSS_Context::$user_conf->sort_order), '",',
'auto_mark_article:', $mark['article'] ? 'true' : 'false', ',',
'auto_mark_site:', $mark['site'] ? 'true' : 'false', ',',
@@ -31,7 +30,7 @@ echo 'var context={',
'html5_notif_timeout:', FreshRSS_Context::$user_conf->html5_notif_timeout, ',',
'auth_type:"', FreshRSS_Context::$system_conf->auth_type, '",',
'current_user_mail:', $mail ? ('"' . $mail . '"') : 'null', ',',
- 'current_view:"', Minz_Request::param('output', 'normal'), '"',
+ 'current_view:"', Minz_Request::actionName(), '"',
"},\n";
echo 'shortcuts={',