diff options
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts/dashboard.js')
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/dashboard.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/dashboard.js b/sonar-server/src/main/webapp/javascripts/dashboard.js index 11d99d7c79e..d163d088449 100644 --- a/sonar-server/src/main/webapp/javascripts/dashboard.js +++ b/sonar-server/src/main/webapp/javascripts/dashboard.js @@ -45,14 +45,12 @@ Portal.prototype = { }, highlightWidget: function(widgetId) { - new Effect.Pulsate($('block_' + widgetId), {duration: this.options.highlight_duration}); new Effect.Highlight($('block_' + widgetId), {duration: this.options.highlight_duration, startcolor: this.options.highlight_startcolor, endcolor: this.options.highlight_endcolor}); }, /****************************************************/ - saveDashboardsState: function () { var result = ""; var index = 1; @@ -106,6 +104,10 @@ Portal.prototype = { cancelEditWidget: function(id) { $('widget_' + id).show(); $('widget_props_' + id).hide(); + }, + deleteWidget: function(elt) { + $(elt).up('.block').remove(); + this.saveDashboardsState(); } }; |