Skip to content

Commit

Permalink
RFE#908: Improvements for the table editor (index creation).
Browse files Browse the repository at this point in the history
Signed-off-by: Ashutosh Dhundhara <[email protected]>

Fix coding styles.

Signed-off-by: Ashutosh Dhundhara <[email protected]>

Make index columns sortable.

Signed-off-by: Ashutosh Dhundhara <[email protected]>

Fix failing test.

Signed-off-by: Ashutosh Dhundhara <[email protected]>

Fix drag icon in Firefox.

Signed-off-by: Ashutosh Dhundhara <[email protected]>
  • Loading branch information
ashutoshdhundhara committed Jul 22, 2014
1 parent 4193989 commit 91e9a4d
Show file tree
Hide file tree
Showing 13 changed files with 591 additions and 59 deletions.
25 changes: 25 additions & 0 deletions js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ var chart_activeTimeouts = {};
* @var central_column_list array to hold the columns in central list per db.
*/
var central_column_list = [];

/**
* @var primary_indexes array to hold 'Primary' indexe columns.
*/
var primary_indexes = [];

/**
* @var unique_indexes array to hold 'Unique' indexe columns.
*/
var unique_indexes = [];

/**
* @var indexes array to hold 'Index' columns.
*/
var indexes = [];

/**
* @var fulltext_indexes array to hold 'Fulltext' columns.
*/
var fulltext_indexes = [];

/**
* Make sure that ajax requests will not be cached
* by appending a random variable to their parameters
Expand Down Expand Up @@ -3243,6 +3264,10 @@ function indexEditorDialog(url, title, callback_success, callback_failure)
});
checkIndexType();
checkIndexName("index_frm");
$('#index_columns td').each(function () {
$(this).css("width", $(this).width() + 'px');
});
$('#index_columns tbody').sortable();
PMA_showHints($div);
// Add a slider for selecting how many columns to add to the index
$div.find('.slider').slider({
Expand Down
Loading

0 comments on commit 91e9a4d

Please sign in to comment.