From bae13edf731ff6e6d9496f28a4067d7617720fd1 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 21 May 2012 16:33:18 +0200 Subject: [PATCH] Fix editing widget that don't have a title. The javascript was broken is not title was present. --- sonar-server/src/main/webapp/javascripts/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/javascripts/dashboard.js b/sonar-server/src/main/webapp/javascripts/dashboard.js index 022e6a6c241..d2fa3fd15ac 100644 --- a/sonar-server/src/main/webapp/javascripts/dashboard.js +++ b/sonar-server/src/main/webapp/javascripts/dashboard.js @@ -98,12 +98,12 @@ Portal.prototype = { }, editWidget: function(id) { - $('widget_title_' + id).hide(); + $('widget_title_' + id) && $('widget_title_' + id).hide(); $('widget_' + id).hide(); $('widget_props_' + id).show(); }, cancelEditWidget: function(id) { - $('widget_title_' + id).show(); + $('widget_title_' + id) && $('widget_title_' + id).show(); $('widget_' + id).show(); $('widget_props_' + id).hide(); }, -- 2.39.5