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:
Diffstat (limited to 'js/src/indexes.js')
-rw-r--r--js/src/indexes.js22
1 files changed, 10 insertions, 12 deletions
diff --git a/js/src/indexes.js b/js/src/indexes.js
index 6befac9ae0..beeadaeb46 100644
--- a/js/src/indexes.js
+++ b/js/src/indexes.js
@@ -7,8 +7,6 @@
* @required js/functions.js
*/
-/* global fulltextIndexes:writable, indexes:writable, primaryIndexes:writable, spatialIndexes:writable, uniqueIndexes:writable */ // js/functions.js
-
var Indexes = {};
/**
@@ -23,19 +21,19 @@ Indexes.getIndexArray = function (indexChoice) {
switch (indexChoice.toLowerCase()) {
case 'primary':
- sourceArray = primaryIndexes;
+ sourceArray = window.primaryIndexes;
break;
case 'unique':
- sourceArray = uniqueIndexes;
+ sourceArray = window.uniqueIndexes;
break;
case 'index':
- sourceArray = indexes;
+ sourceArray = window.indexes;
break;
case 'fulltext':
- sourceArray = fulltextIndexes;
+ sourceArray = window.fulltextIndexes;
break;
case 'spatial':
- sourceArray = spatialIndexes;
+ sourceArray = window.spatialIndexes;
break;
default:
return null;
@@ -568,11 +566,11 @@ Indexes.off = () => function () {
*/
Indexes.on = () => function () {
// Re-initialize variables.
- primaryIndexes = [];
- uniqueIndexes = [];
- indexes = [];
- fulltextIndexes = [];
- spatialIndexes = [];
+ window.primaryIndexes = [];
+ window.uniqueIndexes = [];
+ window.indexes = [];
+ window.fulltextIndexes = [];
+ window.spatialIndexes = [];
// for table creation form
var $engineSelector = $('.create_table_form select[name=tbl_storage_engine]');