Ensure that refresh button on dashboard should refresh the table. Fixes #3525

This commit is contained in:
Murtuza Zabuawala
2018-08-29 11:24:45 +05:30
committed by Akshay Joshi
parent dd3c7c94e6
commit 9c8cf26784
2 changed files with 9 additions and 5 deletions

View File

@@ -1078,9 +1078,10 @@ define('pgadmin.dashboard', [
}
});
// Handle button clicks
$('button').off('click').on('click',() => {
switch (this.id) {
$('button').off('click').on('click', (e) => {
let $this = $(e.currentTarget);
let targetID = $this.length ? $this[0].id : undefined;
switch (targetID) {
case 'btn_server_activity_refresh':
pgAdmin.Dashboard.render_grid_data(div_server_activity);
break;
@@ -1324,8 +1325,10 @@ define('pgadmin.dashboard', [
});
// Handle button clicks
$('button').off('click').on('click',() => {
switch (this.id) {
$('button').off('click').on('click', (e) => {
let $this = $(e.currentTarget);
let targetID = $this.length ? $this[0].id : undefined;
switch (targetID) {
case 'btn_database_activity_refresh':
pgAdmin.Dashboard.render_grid_data(div_database_activity);
break;