bug #4812 Issues with index dialog while creating a table

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2015-03-19 10:16:04 +05:30
parent 15b8c778c0
commit e8ced3949d
3 changed files with 4 additions and 2 deletions

View File

@ -368,7 +368,7 @@ function PMA_addDatepicker($this_element, type, options)
}, 0);
},
onSelect: function() {
$this_element.data('datepicker').inline = true;
$this_element.data('datepicker').inline = true;
},
onClose: function (dateText, dp_inst) {
// The value is no more from the date picker
@ -3493,6 +3493,7 @@ function showIndexEditDialog($outer)
);
}
});
$('div.add_fields').removeClass('hide');
// focus index size input on column picked
$outer.find('table#index_columns select').change(function () {
if ($(this).find("option:selected").val() === '') {

View File

@ -344,6 +344,7 @@ function PMA_showAddIndexDialog(source_array, array_index, target_columns, col_i
open: function () {
checkIndexName("index_frm");
PMA_showHints($div);
PMA_init_slider();
$('#index_columns td').each(function () {
$(this).css("width", $(this).width() + 'px');
});

View File

@ -460,7 +460,7 @@ function PMA_getHtmlForIndexForm($fields, $index, $form_params, $add_fields)
$html .= '<div class="add_more">';
$btn_value = sprintf(__('Add %s column(s) to index'), 1);
$html .= '<div class="slider"></div>';
$html .= '<div class="add_fields">';
$html .= '<div class="add_fields hide">';
$html .= '<input type="submit" id="add_fields" value="' . $btn_value . '" />';
$html .= '</div>';
$html .= '</div>';