Commit f301dc61 authored by Markus Sommer's avatar Markus Sommer Committed by Wouter Wolters
Browse files

[TASK] Table Wizard: Submit on click toggles "Small fields"

Resolves: #71369
Releases: master
Change-Id: I5393137279815a818241c7a6856b3d784705120f
Reviewed-on: https://review.typo3.org/44578


Reviewed-by: default avatarMarkus Sommer <markussom@posteo.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent b2ef87f3
......@@ -443,6 +443,7 @@ class TableController extends AbstractWizardController
</tfoot>';
}
$content = '';
$addSubmitOnClick = 'onclick="document.getElementById(\'TableController\').submit();"';
// Implode all table rows into a string, wrapped in table tags.
$content .= '
......@@ -459,7 +460,7 @@ class TableController extends AbstractWizardController
<div class="checkbox">
<input type="hidden" name="TABLE[textFields]" value="0" />
<label for="textFields">
<input type="checkbox" name="TABLE[textFields]" id="textFields" value="1"' . ($this->inputStyle ? ' checked="checked"' : '') . ' />
<input type="checkbox" ' . $addSubmitOnClick . ' name="TABLE[textFields]" id="textFields" value="1"' . ($this->inputStyle ? ' checked="checked"' : '') . ' />
' . $this->getLanguageService()->getLL('table_smallFields') . '
</label>
</div>';
......
Supports Markdown
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