Fix "Connection" label always shown on table create, should be hidden like the input

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-04-01 01:34:08 +02:00
parent 176ff6a99c
commit 4bf427c2c0
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 2 additions and 3 deletions

View File

@ -3341,8 +3341,7 @@ AJAX.registerOnload('functions.js', function () {
*/
Functions.hideShowConnection = function ($engineSelector) {
var $connection = $('.create_table_form input[name=connection]');
var index = $connection.parent('td').index();
var $labelTh = $connection.parents('tr').prev('tr').children('th').eq(index);
var $labelTh = $('.create_table_form #storage-engine-connection');
if ($engineSelector.val() !== 'FEDERATED') {
$connection
.prop('disabled', true)

View File

@ -78,7 +78,7 @@
{{ show_mysql_docu('Storage_engines') }}
</th>
<td width="25">&nbsp;</td>
<th>
<th id="storage-engine-connection">
{% trans 'Connection:' %}
{{ show_mysql_docu('federated-create-connection') }}
</th>