summaryrefslogtreecommitdiff
path: root/app/views/helpers/javascript_vars.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-12-25 05:11:38 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-12-25 05:11:38 +0100
commiteefeb2341915d677e446cd733fc58b45efb7f5d9 (patch)
treef9ec49b6a2e116157d6e72847dc196215668fbae /app/views/helpers/javascript_vars.phtml
parent4888f919f104b2d170302565e481a0b731eb4145 (diff)
jQuery ES6 partial refactoring
Prefix jQuery variables with $ Start avoiding jQuery in easy cases Use let/const
Diffstat (limited to 'app/views/helpers/javascript_vars.phtml')
-rw-r--r--app/views/helpers/javascript_vars.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index b950b6a1f..b62263ecf 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -42,7 +42,7 @@ echo htmlspecialchars(json_encode(array(
'reading_view' => @$s['reading_view'],
'rss_view' => @$s['rss_view'],
),
- 'url' => array(
+ 'urls' => array(
'index' => _url('index', 'index'),
'login' => Minz_Url::display(array('c' => 'auth', 'a' => 'login'), 'php'),
'logout' => Minz_Url::display(array('c' => 'auth', 'a' => 'logout'), 'php'),