diff options
author | friendica <redmatrix@redmatrix.me> | 2015-04-20 20:49:55 -0700 |
---|---|---|
committer | friendica <redmatrix@redmatrix.me> | 2015-04-20 20:49:55 -0700 |
commit | 6bc2766d79388ce6f813c429348cbc50d9afadaa (patch) | |
tree | 4a858e585162c602072cbf18478753716c85a0f4 | |
parent | 53339d19a391e66635c21199484f1e4afa7b2ec7 (diff) | |
download | volse-hubzilla-6bc2766d79388ce6f813c429348cbc50d9afadaa.tar.gz volse-hubzilla-6bc2766d79388ce6f813c429348cbc50d9afadaa.tar.bz2 volse-hubzilla-6bc2766d79388ce6f813c429348cbc50d9afadaa.zip |
issue #162
-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}}", |