aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-09-04 15:02:25 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-09-04 15:02:55 +0200
commitf52ac51e06e7b23cb09e1798353c5a832bdbd82a (patch)
treeda9cb232d508d108aeb78f57da434a616dbbdb34 /sonar-server
parentfcf8ea15419d2b9ce1321805d14dda15cbe08ee7 (diff)
downloadsonarqube-f52ac51e06e7b23cb09e1798353c5a832bdbd82a.tar.gz
sonarqube-f52ac51e06e7b23cb09e1798353c5a832bdbd82a.zip
Fix SONAR-4517
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb7
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb
index d1867df0cc8..ae419530933 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb
@@ -1,6 +1,5 @@
-<form onsubmit="$j.ajax
- ({
- url: '<%= ApplicationController.root_context-%>/dashboard/save_widget?wid=<%=widget.id-%>',
+<form onsubmit="$j.ajax({
+ url: '<%= ApplicationController.root_context-%>/dashboard/save_widget?wid=<%=widget.id-%>&id=<%= params[:id] -%>',
type: 'post',
data: $j(this).serialize(),
error: function(request)
@@ -9,7 +8,7 @@
$j('#error<%=widget.id-%>').show();
}
});
- return false;"
+ return false;"
method="post"
action="<%= ApplicationController.root_context-%>/dashboard/save_widget?wid=<%=widget.id-%>">
<div id="error<%= widget.id -%>" class="error" style="display: none"></div>