]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4612 Remove prototypejs from administration console
authorstephenbroyer <stephen.broyer@sonarsource.com>
Fri, 6 Sep 2013 13:32:00 +0000 (15:32 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 11 Sep 2013 09:00:30 +0000 (11:00 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/manual_measures/new.html.erb

index 7b89c2b2b4d39f83953d27b709d824992c1e24c7..d9cb0382a9b45c7f2f449e12f31b78c1a3b5efc3 100644 (file)
@@ -1,10 +1,10 @@
 <script type="text/javascript">
   function changeMetric() {
-    document.location = '<%= ApplicationController.root_context-%>/manual_measures/new/<%= @resource.id -%>?metric=' + $('metricSelect').getValue();
+    document.location = '<%= ApplicationController.root_context-%>/manual_measures/new/<%= @resource.id -%>?metric=' + $j('#metricSelect').val();
     return false;
   }
   function saveAndAddNew() {
-    $('redirect_to_new').setValue('true');
+    $j('#redirect_to_new').val('true');
     return true;
   }
 </script>
@@ -94,6 +94,6 @@
 
 <% if @metric %>
   <script type="text/javascript">
-    $('valueText').focus();
+    $j('#valueText').focus();
   </script>
 <% end %>