Commit fe97c792 by Scott

Add confirmation for options reset in Admin

parent b7dbf5ab
...@@ -222,6 +222,7 @@ ...@@ -222,6 +222,7 @@
'requires_php_version' => 'Disabled - requires PHP ^ or later', 'requires_php_version' => 'Disabled - requires PHP ^ or later',
'requires_q2a_version' => 'Disabled - requires Question2Answer ^ or later', 'requires_q2a_version' => 'Disabled - requires Question2Answer ^ or later',
'reset_options_button' => 'Reset to Defaults', 'reset_options_button' => 'Reset to Defaults',
'reset_options_confirm' => 'Are you sure you want to reset all options on this page to their defaults?',
'resume_mailing_button' => 'Resume Mailing', 'resume_mailing_button' => 'Resume Mailing',
'save_options_button' => 'Save Options', 'save_options_button' => 'Save Options',
'save_recalc_button' => 'Save and Recalculate', 'save_recalc_button' => 'Save and Recalculate',
......
...@@ -849,7 +849,7 @@ ...@@ -849,7 +849,7 @@
), ),
'reset' => array( 'reset' => array(
'tags' => 'name="doresetoptions"', 'tags' => 'name="doresetoptions" onclick="return confirm('.qa_js(qa_lang_html('admin/reset_options_confirm')).');"',
'label' => qa_lang_html('admin/reset_options_button'), 'label' => qa_lang_html('admin/reset_options_button'),
), ),
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment