diff --git a/plugins/mezuro/public/javascripts/project_content.js b/plugins/mezuro/public/javascripts/project_content.js index 9e96bd0..6fcae14 100644 --- a/plugins/mezuro/public/javascripts/project_content.js +++ b/plugins/mezuro/public/javascripts/project_content.js @@ -1,7 +1,8 @@ var processingTree = false; jQuery(function (){ jQuery('.source-tree-link').live("click", reloadModule); - showLoadingProcess(true); + jQuery('[data-show]').live("click", toggle_mezuro); + showLoadingProcess(true); showProjectContent(); }); @@ -9,7 +10,8 @@ function showProjectContent() { callAction('project_state', {}, showProjectContentFor); } -function toogle(element){ +function toggle_mezuro(){ + var element = jQuery(this).attr('data-show'); jQuery(element).toggle(); return false; } diff --git a/plugins/mezuro/views/content_viewer/_module_result.rhtml b/plugins/mezuro/views/content_viewer/_module_result.rhtml index 38db7cb..6b3fe40 100644 --- a/plugins/mezuro/views/content_viewer/_module_result.rhtml +++ b/plugins/mezuro/views/content_viewer/_module_result.rhtml @@ -18,7 +18,7 @@ <% module_result.metric_results.each do |metric_result| %> <% range = metric_result.range %> - ')";><%= metric_result.metric.name %> + "><%= metric_result.metric.name %> <%= metric_result.value.slice(/[0-9]+\.[0-9]{1,2}/) %> <%= metric_result.weight %> <% if range.nil? %> @@ -27,7 +27,7 @@ <%= range.label %> <% end %> - "> + " style="display: none;"> <%= range.comments.nil? ? 'comment empty' : range.comments %> -- libgit2 0.21.2