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:
parent
176ff6a99c
commit
4bf427c2c0
@ -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)
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
{{ show_mysql_docu('Storage_engines') }}
|
||||
</th>
|
||||
<td width="25"> </td>
|
||||
<th>
|
||||
<th id="storage-engine-connection">
|
||||
{% trans 'Connection:' %}
|
||||
{{ show_mysql_docu('federated-create-connection') }}
|
||||
</th>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user