]> source.dussan.org Git - sonarqube.git/commitdiff
fix SONAR-6815 Impossible to configure dashboard when one of the widgets has double...
authorStas Vilchik <vilchiks@gmail.com>
Fri, 11 Sep 2015 07:31:59 +0000 (09:31 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 11 Sep 2015 07:32:08 +0000 (09:32 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb

index 3bb4a42d099a5ce50d788f082895811c42e2ae44..249a17f2a083f363f928ee5c51e93edc01f35a91 100644 (file)
@@ -81,7 +81,7 @@
         widget_title = message("widget.#{definition.id}.name", :default => definition.title).downcase
         widget_description = message("widget.#{definition.id}.description", :default => definition.description).downcase
     %>
-    { id:"<%= widget_id -%>", c:"<%= widget_title.gsub(/\r\n?/, " ") -%> <%= widget_description.gsub(/\r\n?/, " ") -%>" } <%= "," unless index==number_of_widgets-1 -%>
+    { id:"<%= widget_id -%>", c:"<%= escape_javascript widget_title.gsub(/\r\n?/, " ") -%> <%= escape_javascript widget_description.gsub(/\r\n?/, " ") -%>" } <%= "," unless index==number_of_widgets-1 -%>
     <% end %>
   ];