aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/javascript_vars.phtml
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-05-15 21:52:52 +0200
committerGravatar GitHub <noreply@github.com> 2022-05-15 21:52:52 +0200
commit807ea755e0bddb814f5c55bdfa5321ce144fe816 (patch)
treeac19704b8bea917d06fca95aecff828db804b204 /app/views/helpers/javascript_vars.phtml
parent0cde4e898f94a10b5da7a221d5ddab904e0f2b1d (diff)
fix preview (#4291)
* fix * Update extra.js * reorga the scripts * Update extra.js * Several fixes https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1125472321 * More fixes * Cleaning * fix pr 4291 * Reorganise some script functions * Remove unused popup-txt And associated function openPopupWithMessage * Fix archiving categories https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126924602 * Fix stats https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126983134 * Fix direct subscription E.g. http://localhost/i/?c=subscription&id=735 * Fix subscription add https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126991621 Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/helpers/javascript_vars.phtml')
-rw-r--r--app/views/helpers/javascript_vars.phtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index 5d78890f3..99437c7a6 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -22,6 +22,10 @@ echo htmlspecialchars(json_encode(array(
'auth_type' => FreshRSS_Context::$system_conf->auth_type,
'current_view' => Minz_Request::actionName(),
'csrf' => FreshRSS_Auth::csrfToken(),
+ 'mtime' => [
+ 'extra.js' => @filemtime(PUBLIC_PATH . '/scripts/extra.js'),
+ 'feed.js' => @filemtime(PUBLIC_PATH . '/scripts/feed.js'),
+ ],
),
'shortcuts' => array(
'actualize' => @$s['actualize'],