Followup to #7361: Reset button has now a JS confirm question
authorBenni Mack <benni.mack@typo3.org>
Sun, 3 Feb 2008 16:04:14 +0000 (16:04 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sun, 3 Feb 2008 16:04:14 +0000 (16:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3038 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/setup/mod/index.php
typo3/sysext/setup/mod/locallang.xml

index 2b8b5db..84304a8 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2008-02-03  Benjamin Mack  <mack@xnos.org>
 
+       * Followup to #7361: Reset button has now a JS confirm question
        * Followup to #7346: opendocs top menu only is included once now
        * Feature #7346: Added "Open Documents" menu in top bar of new BE, made module optional
        * Followup to #7361: Save button was moved to bottom again
index 533eadd..46bb41e 100755 (executable)
@@ -485,7 +485,7 @@ class SC_mod_user_setup_index {
                $this->content .= $this->doc->section('','
                        <input type="hidden" name="simUser" value="'.$this->simUser.'" />
                        <input type="submit" name="submit" value="'.$LANG->getLL('save').'" />
-                       <input type="submit" value="'.$LANG->getLL('setToStandard').'" name="data[setValuesToDefault]" onclick="this.forms[0].submit();" />'.
+                       <input type="submit" name="data[setValuesToDefault]" value="'.$LANG->getLL('setToStandard').'" onclick="return confirm(\''.$LANG->getLL('setToStandardQuestion').'\');" />'.
                        t3lib_BEfunc::cshItem('_MOD_user_setup', 'reset', $BACK_PATH,'|')
                );
                
index ea7e32b..7a20d7d 100755 (executable)
@@ -81,6 +81,7 @@
                        <label index="edit_functions">Edit</label>
                        <label index="disableCMlayers">Disable Popup Context Menus</label>
                        <label index="setToStandard">Reset all Values to default</label>
+                       <label index="setToStandardQuestion">Are you sure you want to reset all values to default?</label>
                        <label index="functions">Advanced functions</label>
                        <label index="copyLevels">&lt;b&gt;Recursive Copy:&lt;/b&gt; Enter the number of page&lt;br /&gt;sublevels to include, when a page is copied</label>
                        <label index="recursiveDelete">&lt;b&gt;Recursive Delete(!):&lt;/b&gt; Allow ALL subpages&lt;br /&gt;to be deleted when deleting a page</label>