From c3762c90594e2cbe51ba7154265f899674b47fb8 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Fri, 6 May 2016 08:49:28 +0100 Subject: [PATCH] Ensure we update the error message on dashboard grids when it changes. --- .../dashboard/templates/dashboard/js/dashboard.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/pgadmin/dashboard/templates/dashboard/js/dashboard.js b/web/pgadmin/dashboard/templates/dashboard/js/dashboard.js index ec4cb14fe..8159053ff 100644 --- a/web/pgadmin/dashboard/templates/dashboard/js/dashboard.js +++ b/web/pgadmin/dashboard/templates/dashboard/js/dashboard.js @@ -328,15 +328,16 @@ function(r, $, pgAdmin, _, Backbone) { cls = 'danger'; } - // Stash the old content, and replace with the error, if not already present + // Replace the content with the error, if not already present. Always update the message if (!$(container).hasClass('grid-error')) { $(filter.el).hide(); $(container).addClass('grid-error'); - $(container).html( - '' - ); } + $(container).html( + '' + ); + // Try again setTimeout(function() { pgAdmin.Dashboard.render_grid_data(container, data);