]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4674 Remove prototypejs from project configuration pages
authorstephenbroyer <stephen.broyer@sonarsource.com>
Tue, 24 Sep 2013 15:38:29 +0000 (17:38 +0200)
committerstephenbroyer <stephen.broyer@sonarsource.com>
Tue, 24 Sep 2013 15:42:13 +0000 (17:42 +0200)
(update key)

sonar-server/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/project/key.html.erb

index 11eeb27ecc4db631896952bf4e363fcdc93ad0d8..4cca51a28b682eb3d8291bdb153f252f39bf7767 100644 (file)
@@ -3,11 +3,11 @@
         <%= h(current_module.key) -%>
       </td>
       <td class="thin nowrap">
-        <% form_tag( {:action => 'update_key', :id => current_module.id }, :onsubmit => "update_launched();$('loading_#{id_prefix}').show();") do -%>
+        <% form_tag( {:action => 'update_key', :id => current_module.id }, :onsubmit => "update_launched();$j('#loading_#{id_prefix}').show();") do -%>
           <input type="text" value="<%= h(current_module.key) -%>" name="new_key" id="key_<%= id_prefix -%>" size="80">
           <%= submit_tag message('update_key.rename'), :id => 'update_key_' + id_prefix, :class => 'action',
                          :confirm => message('update_key.are_you_sure_to_rename_x', :params => current_module.key) %>                         
-          <a href="#" onclick="$('key_<%= id_prefix -%>').value='<%= h(current_module.key) -%>';"><%= message('update_key.reset') -%></a>
+          <a href="#" onclick="$j('#key_<%= id_prefix -%>').val('<%= h(current_module.key) -%>');"><%= message('update_key.reset') -%></a>
           <span class="loading" id="loading_<%= id_prefix -%>" style="display: none; padding: 3px 10px;"></span>
         <% end %>
       </td>
index 7efb7581e413f52650e1eb77f149795520223452..d0e9e7be0df585793f5b64502e75b03ec430880b 100644 (file)
@@ -6,7 +6,7 @@
 
 <script type="text/javascript">
   function update_launched() {
-    $$('input.action').each(function(input) {
+    $j('input.action').each(function(index,input) {
       input.disabled=true;
     });
   }
@@ -25,7 +25,7 @@
     <%= message('update_key.current_key_for_project_x_is_x', :params => [@project.name, @project.key]) -%>
   </p>
   <br/>
-  <% form_tag( {:action => 'prepare_key_bulk_update', :id => @project.id }, :onsubmit => "update_launched();$('loading_bulk_update').show();") do -%>
+  <% form_tag( {:action => 'prepare_key_bulk_update', :id => @project.id }, :onsubmit => "update_launched();$j('#loading_bulk_update').show();") do -%>
     <table>
       <tr>
         <td style="padding-right: 20px"><%= message('update_key.replace') -%>:</td>