From 950cb05090fccb28a9479f9e0307751a51107870 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 21 Dec 2015 08:22:24 -0500 Subject: [PATCH] Fix definition order Signed-off-by: Marc Delisle --- js/indexes.js | 63 +++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/js/indexes.js b/js/indexes.js index 106ec10d06..3204aa1401 100644 --- a/js/indexes.js +++ b/js/indexes.js @@ -8,6 +8,37 @@ * @required js/functions.js */ +/** + * Returns the array of indexes based on the index choice + * + * @param index_choice index choice + */ +function PMA_getIndexArray(index_choice) +{ + var source_array = null; + + switch (index_choice.toLowerCase()) { + case 'primary': + source_array = primary_indexes; + break; + case 'unique': + source_array = unique_indexes; + break; + case 'index': + source_array = indexes; + break; + case 'fulltext': + source_array = fulltext_indexes; + break; + case 'spatial': + source_array = spatial_indexes; + break; + default: + return null; + } + return source_array; +} + /** * Hides/shows the inputs and submits appropriately depending * on whether the index type chosen is 'SPATIAL' or not. @@ -490,38 +521,6 @@ function PMA_indexTypeSelectionDialog(source_array, index_choice, col_index) }); } -/** - * Returns the array of indexes based on the index choice - * - * @param index_choice index choice - */ -function PMA_getIndexArray(index_choice) -{ - var source_array = null; - - switch (index_choice.toLowerCase()) { - case 'primary': - source_array = primary_indexes; - break; - case 'unique': - source_array = unique_indexes; - break; - case 'index': - source_array = indexes; - break; - case 'fulltext': - source_array = fulltext_indexes; - break; - case 'spatial': - source_array = spatial_indexes; - break; - default: - return null; - } - return source_array; -} - - /** * Unbind all event handlers before tearing down a page */