Update jQuery to 3.3.1. Fixes #3271

Patch by Aditya, with test enhancements from Anthony and Joao at Pivotal.
This commit is contained in:
Aditya Toshniwal
2018-05-25 16:26:37 +01:00
committed by Dave Page
parent 61d8072a8c
commit 9f13865777
32 changed files with 120 additions and 154 deletions

View File

@@ -63,9 +63,9 @@ define('pgadmin.dashboard', [
// This will refresh the grid
var refresh_grid = function() {
if (is_server_dashboard) {
$('#btn_server_activity_refresh').click();
$('#btn_server_activity_refresh').trigger('click');
} else if (is_database_dashboard) {
$('#btn_database_activity_refresh').click();
$('#btn_database_activity_refresh').trigger('click');
}
};
@@ -139,7 +139,7 @@ define('pgadmin.dashboard', [
);
this.delegateEvents();
if (this.grabFocus)
this.$el.focus();
this.$el.trigger('focus');
return this;
},
});
@@ -969,7 +969,7 @@ define('pgadmin.dashboard', [
});
// Handle button clicks
$('button').click(function() {
$('button').on('click',() => {
switch (this.id) {
case 'btn_server_activity_refresh':
pgAdmin.Dashboard.render_grid_data(div_server_activity);
@@ -1290,7 +1290,7 @@ define('pgadmin.dashboard', [
});
// Handle button clicks
$('button').click(function() {
$('button').on('click',() => {
switch (this.id) {
case 'btn_database_activity_refresh':
pgAdmin.Dashboard.render_grid_data(div_database_activity);