diff options
| author | 2014-09-24 13:56:40 +0200 | |
|---|---|---|
| committer | 2014-09-24 13:56:40 +0200 | |
| commit | bcb1e3750a9eee51070d602cc77def06f7f071c9 (patch) | |
| tree | 9af9bab0dcf0d3a6f45491631b17053c088ffe3b /p/scripts | |
| parent | 17f686095ddebe1a7c94fe665eddfdfef9696015 (diff) | |
More explicit message when deleting feeds or cats
Introduce "data-str-confirm" to override default message for confirm actions.
Fix https://github.com/marienfressinaud/FreshRSS/issues/625
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 2503116ee..f6d5d2907 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1109,6 +1109,11 @@ function init_persona() { function init_confirm_action() { $('body').on('click', '.confirm', function () { + var str_confirmation = $(this).attr('data-str-confirm'); + if (!str_confirmation) { + str_confirmation = str_confirmation_default; + } + return confirm(str_confirmation); }); } |
