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
path: root/js
diff options
context:
space:
mode:
authorVangelis Galanis <vaggalanis@gmail.com>2018-04-29 19:10:42 +0300
committerVangelis Galanis <vaggalanis@gmail.com>2018-04-29 19:10:42 +0300
commit3a01bfd013d8ddc071dbdd54c6e7f0f009f8beed (patch)
treeed00e6341fea56fb50e3113b6617291daf343543 /js
parentb812bd5c7335ff7efb113990ab476049e08626e0 (diff)
Fix some jQuery Migrate warnings
Signed-off-by: Vangelis Galanis <vaggalanis@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/import.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/import.js b/js/import.js
index 7bd91a2ecc..8efebe9fbe 100644
--- a/js/import.js
+++ b/js/import.js
@@ -65,7 +65,7 @@ AJAX.registerOnload('import.js', function () {
// remote upload.
if (radioImport.is(':checked') && $('#input_import_file').val() === '') {
- $('#input_import_file').focus();
+ $('#input_import_file').trigger('focus');
PMA_ajaxShowMessage(fileMsg, false);
return false;
}
@@ -77,7 +77,7 @@ AJAX.registerOnload('import.js', function () {
}
if ($('#select_local_import_file').val() === '') {
- $('#select_local_import_file').focus();
+ $('#select_local_import_file').trigger('focus');
PMA_ajaxShowMessage(fileMsg, false);
return false;
}
@@ -85,7 +85,7 @@ AJAX.registerOnload('import.js', function () {
} else {
// local upload.
if ($('#input_import_file').val() === '') {
- $('#input_import_file').focus();
+ $('#input_import_file').trigger('focus');
PMA_ajaxShowMessage(fileMsg, false);
return false;
}
@@ -100,15 +100,15 @@ AJAX.registerOnload('import.js', function () {
changePluginOpts();
// Whenever the selected plugin changes, change the options displayed
- $('#plugins').change(function () {
+ $('#plugins').on('change', function () {
changePluginOpts();
});
- $('#input_import_file').change(function () {
+ $('#input_import_file').on('change', function () {
matchFile($(this).val());
});
- $('#select_local_import_file').change(function () {
+ $('#select_local_import_file').on('change', function () {
matchFile($(this).val());
});
@@ -120,7 +120,7 @@ AJAX.registerOnload('import.js', function () {
$('#radio_import_file').prop('checked', true);
$('#radio_local_import_file').prop('checked', false);
});
- $('#select_local_import_file').focus(function () {
+ $('#select_local_import_file').on('focus', function () {
$('#radio_local_import_file').prop('checked', true);
$('#radio_import_file').prop('checked', false);
});