Commit 7410825bd14a9de18d8dce4cb8d821a2f623cc27
1 parent
b3bcb7b1
Exists in
master
and in
29 other branches
[Mezuro] update results.js
Showing
3 changed files
with
2 additions
and
3 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin.rb
@@ -17,7 +17,7 @@ class MezuroPlugin < Noosfero::Plugin | @@ -17,7 +17,7 @@ class MezuroPlugin < Noosfero::Plugin | ||
17 | end | 17 | end |
18 | 18 | ||
19 | def js_files | 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 | end | 21 | end |
22 | 22 | ||
23 | end | 23 | end |
plugins/mezuro/lib/mezuro_plugin/project_content.rb
@@ -17,7 +17,6 @@ class MezuroPlugin::ProjectContent < Article | @@ -17,7 +17,6 @@ class MezuroPlugin::ProjectContent < Article | ||
17 | end | 17 | end |
18 | end | 18 | end |
19 | 19 | ||
20 | - # From ProjectClient | ||
21 | def project | 20 | def project |
22 | @project ||= Kalibro::Client::ProjectClient.project(name) | 21 | @project ||= Kalibro::Client::ProjectClient.project(name) |
23 | end | 22 | end |
plugins/mezuro/public/javascripts/results.js
@@ -6,7 +6,7 @@ function show_module_result(){ | @@ -6,7 +6,7 @@ function show_module_result(){ | ||
6 | var profile = jQuery('#module-result').attr('data-profile'); | 6 | var profile = jQuery('#module-result').attr('data-profile'); |
7 | var project = jQuery('#module-result').attr('data-project-id'); | 7 | var project = jQuery('#module-result').attr('data-project-id'); |
8 | var module_name = jQuery(this).attr('data-module-name'); | 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 | show_loading_message(module_name); | 10 | show_loading_message(module_name); |
11 | jQuery.get(endpoint, {module_name: module_name}, show_result_table); | 11 | jQuery.get(endpoint, {module_name: module_name}, show_result_table); |
12 | return false; | 12 | return false; |