+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
$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');
* @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;
}
<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">';