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) {
|
Functions.hideShowConnection = function ($engineSelector) {
|
||||||
var $connection = $('.create_table_form input[name=connection]');
|
var $connection = $('.create_table_form input[name=connection]');
|
||||||
var index = $connection.parent('td').index();
|
var $labelTh = $('.create_table_form #storage-engine-connection');
|
||||||
var $labelTh = $connection.parents('tr').prev('tr').children('th').eq(index);
|
|
||||||
if ($engineSelector.val() !== 'FEDERATED') {
|
if ($engineSelector.val() !== 'FEDERATED') {
|
||||||
$connection
|
$connection
|
||||||
.prop('disabled', true)
|
.prop('disabled', true)
|
||||||
|
|||||||
@ -78,7 +78,7 @@
|
|||||||
{{ show_mysql_docu('Storage_engines') }}
|
{{ show_mysql_docu('Storage_engines') }}
|
||||||
</th>
|
</th>
|
||||||
<td width="25"> </td>
|
<td width="25"> </td>
|
||||||
<th>
|
<th id="storage-engine-connection">
|
||||||
{% trans 'Connection:' %}
|
{% trans 'Connection:' %}
|
||||||
{{ show_mysql_docu('federated-create-connection') }}
|
{{ show_mysql_docu('federated-create-connection') }}
|
||||||
</th>
|
</th>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user