aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/javascript_vars.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-09 01:22:51 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-09 01:22:51 +0100
commit1de8218182a7126d4b44c4a5f35d1eaf7ef4bb71 (patch)
treeede95a35a19b0950ec12624e8b59d962064838ee /app/views/helpers/javascript_vars.phtml
parent1c2143c0794b6d14484a71e1025234356087117c (diff)
Déplacement de confirm_action_script
Ce script a été intégré à main.js pour être certain que JQuery est chargé au moment de l'initialisation Voir commentaires commit c06aede546514aa35ab5369575f15710b30a2a23
Diffstat (limited to 'app/views/helpers/javascript_vars.phtml')
-rw-r--r--app/views/helpers/javascript_vars.phtml6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index df552527f..101c2e001 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -17,7 +17,7 @@
'go_website:"', $s['go_website'], '",',
'prev_entry:"', $s['prev_entry'], '",',
'next_entry:"', $s['next_entry'], '"',
- "},";
+ "},\n";
$mail = Session::param ('mail', 'null');
if ($mail != 'null') {
@@ -29,4 +29,6 @@
'url_logout="', _url ('index', 'logout'), '",',
'current_user_mail=', $mail, ",\n";
- echo 'load_shortcuts=', Request::controllerName () === 'index' && Request::actionName () === 'index' ? 'true' : 'false', ";\n";
+ echo 'load_shortcuts=', Request::controllerName () === 'index' && Request::actionName () === 'index' ? 'true' : 'false', ",\n";
+
+ echo 'str_confirmation="', Translate::t('confirm_action'), '"', ";\n";