]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4666 Remove prototypejs from widgets (Complexity)
authorstephenbroyer <stephen.broyer@sonarsource.com>
Wed, 18 Sep 2013 16:24:13 +0000 (18:24 +0200)
committerstephenbroyer <stephen.broyer@sonarsource.com>
Thu, 19 Sep 2013 15:19:01 +0000 (17:19 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/complexity.html.erb

index 7e5729e8398554c39cfdd9287a80665889674e77..03e8907cfb2a14e5f3ff06bcd553bfcfc83cb30f 100644 (file)
@@ -54,10 +54,10 @@ complexity=measure('complexity')
  <script type='text/javascript'>
    //<![CDATA[
    function selectComplexity(metric) {
-     $$('#cmp_charts .chart').each(function(chart) {
+     $j('#cmp_charts .chart').each(function(index,chart) {
        chart.hide();
      });
-     $('chart_' + metric).show();
+     $j('#chart_' + metric).show();
    }
  </script>
  <style>