]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4517 fix url
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 11 Sep 2013 14:39:24 +0000 (16:39 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 11 Sep 2013 14:39:24 +0000 (16:39 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb

index 355f48d0be2c03e9b7ab1ff80216bfb5b8a6813b..d656f20b8f6151b57876eed2d7d50d73b835f326 100644 (file)
@@ -2,7 +2,7 @@
   <%= render 'special', :url => url_for(:controller => "#{@category.key}_configuration") -%>
 <% else -%>
   <form        onsubmit="$j('#submit_settings').hide();$j('#loading_settings').show();
-                  $j.ajax({ url:'<%= ApplicationController.root_context-%>/settings/update?category=<%= @category.key -%>&subcategory=<%= @subcategory.key -%>&resource_id=<%= @resource && @resource.id -%>',
+                  $j.ajax({ url:'<%= url_for :controller => 'settings', :action => 'update', :category => @category.key, :subcategory => @subcategory.key, :resource_id => (@resource && @resource.id) -%>',
                             type:'post',
                             success:function(responseHTML){$j('#properties').text(responseHTML.responseText);$j('#loading_settings').hide();$j('#submit_settings').show()},
                             data:$j(this).serialize()});