]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4611 Remove prototypejs from Quality Profiles console
authorstephenbroyer <stephen.broyer@sonarsource.com>
Wed, 4 Sep 2013 15:06:44 +0000 (17:06 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 11 Sep 2013 09:00:27 +0000 (11:00 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_active_rule_note.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_note.html.erb

index e0915e46b83a059d7f828bfd21039e205987e199..246be175dfb99db2bdf354d67726c80fedd27161 100644 (file)
@@ -25,7 +25,7 @@
                                        url: '<%=ApplicationController.root_context-%>/rules_configuration/delete_active_rule_note?active_rule_id=<%=active_rule.id-%>',
                                        type: 'post',
                                        success:function(response){$j('#active_rule_note_<%= active_rule.id -%>').html(response);}
-                                     });};"
+                                     });};return false;"
              href="#!"><%=message('delete')-%></a>
         <% end %>
       </cite>
@@ -38,8 +38,7 @@
 </div>
 
 <% if profiles_administrator? %>
-
-   <form onsubmit="$j.ajax({
+  <form onsubmit="$j.ajax({
                             url:'<%= ApplicationController.root_context -%>/rules_configuration/update_active_rule_note?active_rule_id=<%=active_rule.id-%>',
                             data: $j(this).serialize(),
                             type:'post',
index 16d0d6f21667df8467ac23962c17407b2a4da977..2bf357b1f2436844f72f4bd3db631e062c2f813b 100644 (file)
 
 <% if profiles_administrator? %>
 <div id="<%= note_form_div_id -%>" style="display: none" class="admin">
-  <%= form_remote_tag :url => {:action => 'update_rule_note', :rule_id => rule.id},
-                      :update => "rule_note_#{rule.id}" %>
+
+  <form onsubmit="$j.ajax({
+                        url:'<%=ApplicationController.root_context-%>/rules_configuration/update_rule_note?rule_id=<%=rule.id-%>',
+                        success:function(response){;$j('#rule_note_<%=rule.id-%>').html(response);},
+                        data: $j(this).serialize(),
+                        type:'post'});
+                  return false;"
+        method="post"
+        action="<%=ApplicationController.root_context-%>/rules_configuration/update_rule_note?rule_id=<%=rule.id-%>">
   <table class="width100 table">
     <tbody>
       <tr>