Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-04-23 10:17:03 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-04-23 10:17:03 +0300
commit179e581475327bfc338833d3d6a5cae8ba47e3e1 (patch)
treeea90f118cdc00a92206b1053b3a9cef6b744eb99 /js/indexes.js
parent9e19fcf371473382c36d50bf81c0dbe8cc0def1b (diff)
bug #4866 Limit column ordering in index edit dialog
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/indexes.js')
-rw-r--r--js/indexes.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/indexes.js b/js/indexes.js
index a2f0f5e8f5..57f9d743b9 100644
--- a/js/indexes.js
+++ b/js/indexes.js
@@ -354,7 +354,11 @@ function PMA_showAddIndexDialog(source_array, array_index, target_columns, col_i
$('#index_columns td').each(function () {
$(this).css("width", $(this).width() + 'px');
});
- $('#index_columns tbody').sortable();
+ $('#index_columns tbody').sortable({
+ axis: 'y',
+ containment: $("#index_columns tbody"),
+ tolerance: 'pointer'
+ });
// We dont need the slider at this moment.
$(this).find('fieldset.tblFooters').remove();
},