<p class="spacer-bottom">Secret key is required to be able to encrypt properties. <a href="http://docs.codehaus.org/display/SONAR/Settings+Encryption" class="external" target="sonar_doc">More information</a>.</p>
<div id="secret_content">
<%= button_to_remote 'Generate secret key',
- :url => {:action => 'generate_secret'},
+ {:url => {:action => 'generate_secret'},
:update => {:success => 'secret_content', :failure => 'secret_error'},
:failure => "$('secret_error').show()",
- :method => 'POST',
- :id => 'submit_generate_secret' -%>
+ :method => 'POST'},
+ {:id => 'submit_generate_secret'} -%>
<span id="secret_error" class="error" style="display:none"></span>
</div>
\ No newline at end of file
<div id="encrypted_section" style="display:none"></div>
<span id="encryption_error" class="error" style="display:none"></span>
-<p>Note that the <%= link_to 'secret key can be changed', {:action => 'generate_secret_form'}, :class => 'link-action' %>
+<p>Note that the <%= link_to 'secret key can be changed', {:action => 'generate_secret_form'}, :class => 'link-action', :id => 'link-generate-key' %>
but all the encrypted properties will have to be updated. <a href="http://docs.codehaus.org/display/SONAR/Settings+Encryption" class="external" target="sonar_doc">More information</a>.</p>
<script>
$('clear_text').focus();