]> source.dussan.org Git - sonarqube.git/commitdiff
Fix SONAR-4517
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 4 Sep 2013 13:02:25 +0000 (15:02 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 4 Sep 2013 13:02:55 +0000 (15:02 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb

index d1867df0cc893a833bfbf9eec9f999a084144c78..ae4195309337af2850268a4466c3cf8c19e355cf 100644 (file)
@@ -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>