aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_settings.js2
-rwxr-xr-xview/tpl/js_strings.tpl1
2 files changed, 2 insertions, 1 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js
index 9c1821494..5dac96940 100644
--- a/view/js/mod_settings.js
+++ b/view/js/mod_settings.js
@@ -6,7 +6,7 @@
var ispublic = aStr.everybody;
$(document).ready(function() {
- $('form').areYouSure({'addRemoveFieldsMarksDirty':true}); // Warn user about unsaved settings
+ $('form').areYouSure({'addRemoveFieldsMarksDirty':true, 'message': aStr['leavethispage'] }); // Warn user about unsaved settings
$("#id_permissions_role").change(function() {
var role = $("#id_permissions_role").val();
diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl
index c557b535d..2e7e85604 100755
--- a/view/tpl/js_strings.tpl
+++ b/view/tpl/js_strings.tpl
@@ -21,6 +21,7 @@
'rating_text' : "{{$rating_text}}",
'submit' : "{{$submit}}",
'linkurl' : "{{$linkurl}}",
+ 'leavethispage' : "{{$leavethispage}}",
't01' : "{{$t01}}",
't02' : "{{$t02}}",