]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4517 fix reloading of page when settings are changed
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 11 Sep 2013 21:50:37 +0000 (23:50 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 11 Sep 2013 21:50:37 +0000 (23:50 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb

index d656f20b8f6151b57876eed2d7d50d73b835f326..fd145bd2d5538418cf17ceb54eac0ca372972e59 100644 (file)
@@ -1,10 +1,11 @@
 <% if @category.isSpecial -%>
   <%= render 'special', :url => url_for(:controller => "#{@category.key}_configuration") -%>
 <% else -%>
-  <form        onsubmit="$j('#submit_settings').hide();$j('#loading_settings').show();
+  <form        onsubmit="$j('#submit_settings').hide();
+                  $j('#loading_settings').show();
                   $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()},
+                            success:function(responseHTML){$j('#properties').html($j(responseHTML));$j('#loading_settings').hide();$j('#submit_settings').show()},
                             data:$j(this).serialize()});
                   return false;"
          method='post'