Feature #11499: database compare in install tool can require a huge amount of clicks...
authorRupert Germann <rupi@gmx.li>
Wed, 8 Jul 2009 13:15:33 +0000 (13:15 +0000)
committerRupert Germann <rupi@gmx.li>
Wed, 8 Jul 2009 13:15:33 +0000 (13:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5703 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/install/mod/class.tx_install.php

index 98e0886..7903db7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-08  Rupert Germann  <rupi@gmx.li>
+
+       * Feature #11499: database compare in install tool can require a huge amount of clicks. Added select/deselect all links.
+
 2009-07-08  Oliver Hader  <oliver@typo3.org>
 
        * Fixed bug #11412: Using typolinkLinkAccessRestrictedPages does not take different domain names into account
index b5b5e55..608ea8c 100755 (executable)
@@ -4151,7 +4151,11 @@ From sub-directory:
                $content = '';
                switch($type)   {
                        case 'get_form':
-                               $content = '';
+                               $content .= '<div style="float:right;">
+                                       <a href="#bottom" onclick="$(\'updateform\').select(\'input[type=checkbox]\').invoke(\'setValue\', true);">select all</a> /
+                                       <a href="#bottom" onclick="$(\'updateform\').select(\'input[type=checkbox]\').invoke(\'setValue\', false);">deselect all</a>
+                                       </div>  ';
+
                                $content.= $this->generateUpdateDatabaseForm_checkboxes($arr_update['clear_table'],'Clear tables (use with care!)',false,true);
 
                                $content.= $this->generateUpdateDatabaseForm_checkboxes($arr_update['add'],'Add fields');
@@ -4181,7 +4185,7 @@ From sub-directory:
         * @return      [type]          ...
         */
        function getUpdateDbFormWrap($action_type, $content, $label='Write to database')        {
-               $form = '<form action="'.$this->action.'#bottom" method="post"><input type="hidden" name="TYPO3_INSTALL[database_type]" value="'.htmlspecialchars($action_type).'">'.$content.'<br /><input type="submit" value="'.$label.'">';
+               $form = '<form action="'.$this->action.'#bottom" method="post" id="updateform"><input type="hidden" name="TYPO3_INSTALL[database_type]" value="'.htmlspecialchars($action_type).'">'.$content.'<br /><input type="submit" value="'.$label.'">';
                return $form;
        }
 
@@ -4830,6 +4834,7 @@ $out="
 <script language="javascript" type="text/javascript">alert(unescape(\'' . t3lib_div::rawUrlEncodeJS($this->JSmessage) . '\'));</script>
 
                ':'').'
+<script type="text/javascript" src="../contrib/prototype/prototype.js"></script>
        </head>
        <body>'.$this->contentBeforeTable.'
                <div align="center">';