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:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-12 07:28:32 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-12 07:28:32 +0300
commit3bf83954a07d7eb4fd6372c2e48e054dfacf2a90 (patch)
treebebf8caa3d8d739530df747fd193dd2a0daa290a /js
parent0ff776a6cf1a93dfc5f55a52ec5f27867400867c (diff)
Replace .keyup() with .on()
.keyup() event shorthand is deprecated Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/config.js2
-rw-r--r--js/server_status_monitor.js2
-rw-r--r--js/server_status_variables.js2
-rw-r--r--js/sql.js2
-rw-r--r--js/tbl_chart.js6
5 files changed, 7 insertions, 7 deletions
diff --git a/js/config.js b/js/config.js
index dc23f7a6e8..19eaff17eb 100644
--- a/js/config.js
+++ b/js/config.js
@@ -517,7 +517,7 @@ function setupValidation () {
var tagName = $el.attr('tagName');
// text fields can be validated after each change
if (tagName === 'INPUT' && $el.attr('type') === 'text') {
- $el.keyup(function () {
+ $el.on('keyup', function () {
validate_field_and_fieldset($el, true);
markField($el);
});
diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js
index 7f70af7632..e6b67e920c 100644
--- a/js/server_status_monitor.js
+++ b/js/server_status_monitor.js
@@ -1659,7 +1659,7 @@ AJAX.registerOnload('server_status_monitor.js', function () {
if (logData.numRows > 250) {
$('#startFilterQueryText').on('click', filterQueries);
} else {
- $('#filterQueryText').keyup(filterQueries);
+ $('#filterQueryText').on('keyup', filterQueries);
}
}
diff --git a/js/server_status_variables.js b/js/server_status_variables.js
index f228c0c400..6adfc99974 100644
--- a/js/server_status_variables.js
+++ b/js/server_status_variables.js
@@ -41,7 +41,7 @@ AJAX.registerOnload('server_status_variables.js', function () {
$('#serverstatusvariables').show();
}).trigger('change');
- $('#filterText').keyup(function (e) {
+ $('#filterText').on('keyup', function (e) {
var word = $(this).val().replace(/_/g, ' ');
if (word.length === 0) {
textFilter = null;
diff --git a/js/sql.js b/js/sql.js
index e4d07af87e..c25124a030 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -272,7 +272,7 @@ AJAX.registerOnload('sql.js', function () {
});
/* Hides the bookmarkoptions checkboxes when the bookmark label is empty */
- $('input#bkm_label').keyup(function () {
+ $('input#bkm_label').on('keyup', function () {
$('input#id_bkm_all_users, input#id_bkm_replace')
.parent()
.toggle($(this).val().length > 0);
diff --git a/js/tbl_chart.js b/js/tbl_chart.js
index c2e67f5102..30688716aa 100644
--- a/js/tbl_chart.js
+++ b/js/tbl_chart.js
@@ -312,7 +312,7 @@ AJAX.registerOnload('tbl_chart.js', function () {
.focus(function () {
temp_chart_title = $(this).val();
})
- .keyup(function () {
+ .on('keyup', function () {
currentSettings.title = $('input[name="chartTitle"]').val();
drawChart();
})
@@ -347,13 +347,13 @@ AJAX.registerOnload('tbl_chart.js', function () {
});
// handle manual changes to the chart x-axis labels
- $('input[name="xaxis_label"]').keyup(function () {
+ $('input[name="xaxis_label"]').on('keyup', function () {
currentSettings.xaxisLabel = $(this).val();
drawChart();
});
// handle manual changes to the chart y-axis labels
- $('input[name="yaxis_label"]').keyup(function () {
+ $('input[name="yaxis_label"]').on('keyup', function () {
currentSettings.yaxisLabel = $(this).val();
drawChart();
});