diff options
-rw-r--r-- | include/js_strings.php | 1 | ||||
-rw-r--r-- | view/js/mod_settings.js | 2 | ||||
-rwxr-xr-x | view/tpl/js_strings.tpl | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/include/js_strings.php b/include/js_strings.php index 84c1d70fb..cae8da5de 100644 --- a/include/js_strings.php +++ b/include/js_strings.php @@ -21,6 +21,7 @@ function js_strings() { '$rating_text' => t('Describe (optional)'), '$submit' => t('Submit'), '$linkurl' => t('Please enter a link URL'), + '$leavethispage' => t('Unsaved changes. Are you sure you wish to leave this page?'), '$t01' => ((t('timeago.prefixAgo') != 'timeago.prefixAgo') ? t('timeago.prefixAgo') : ''), '$t02' => ((t('timeago.prefixFromNow') != 'timeago.prefixFromNow') ? t('timeago.prefixFromNow') : ''), 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}}", |