diff options
Diffstat (limited to 'js/src/drag_drop_import.js')
-rw-r--r-- | js/src/drag_drop_import.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/drag_drop_import.js b/js/src/drag_drop_import.js index f782c35193..de5f08e141 100644 --- a/js/src/drag_drop_import.js +++ b/js/src/drag_drop_import.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; /* This script handles PMA Drag Drop Import, loaded only when configuration is enabled.*/ @@ -38,13 +39,13 @@ var DragDropImport = { var ext = arr[arr.length - 1]; // check if compressed - if (jQuery.inArray(ext.toLowerCase(), + if ($.inArray(ext.toLowerCase(), DragDropImport.allowedCompressedExtensions) !== -1) { ext = arr[arr.length - 2]; } // Now check for extension - if (jQuery.inArray(ext.toLowerCase(), + if ($.inArray(ext.toLowerCase(), DragDropImport.allowedExtensions) !== -1) { return ext; } |