Commit 7410825bd14a9de18d8dce4cb8d821a2f623cc27

Authored by Carlos Morais
1 parent b3bcb7b1

[Mezuro] update results.js

plugins/mezuro/lib/mezuro_plugin.rb
... ... @@ -17,7 +17,7 @@ class MezuroPlugin < Noosfero::Plugin
17 17 end
18 18  
19 19 def js_files
20   - ['javascripts/results.js', 'javascripts/toggle.js', 'javascripts/autoreload.js']
  20 + ['javascripts/autoreload.js', 'javascripts/results.js', 'javascripts/toggle.js']
21 21 end
22 22  
23 23 end
... ...
plugins/mezuro/lib/mezuro_plugin/project_content.rb
... ... @@ -17,7 +17,6 @@ class MezuroPlugin::ProjectContent < Article
17 17 end
18 18 end
19 19  
20   - # From ProjectClient
21 20 def project
22 21 @project ||= Kalibro::Client::ProjectClient.project(name)
23 22 end
... ...
plugins/mezuro/public/javascripts/results.js
... ... @@ -6,7 +6,7 @@ function show_module_result(){
6 6 var profile = jQuery('#module-result').attr('data-profile');
7 7 var project = jQuery('#module-result').attr('data-project-id');
8 8 var module_name = jQuery(this).attr('data-module-name');
9   - var endpoint = '/profile/' + profile + '/plugins/mezuro/metrics/' + project;
  9 + var endpoint = '/profile/' + profile + '/plugins/mezuro/module_result/' + project;
10 10 show_loading_message(module_name);
11 11 jQuery.get(endpoint, {module_name: module_name}, show_result_table);
12 12 return false;
... ...