Commit 8d141577dd238409caf0c098a9be1d9deb4b5992

Authored by Carlos Morais + Paulo Meirelles
Committed by Paulo Meireles
1 parent e5069c25

Update javascript and stylesheet

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/collapsable.js' 20 + 'javascripts/toogle.js'
21 end 21 end
22 22
23 -end 23 -end
  24 +end
24 \ No newline at end of file 25 \ No newline at end of file
plugins/mezuro/public/javascripts/collapsable.js
@@ -1,6 +0,0 @@ @@ -1,6 +0,0 @@
1 -function collapse(id){  
2 - var suffixes = ['_list .statistic', '_plus', '_minus'];  
3 - for (var i in suffixes){  
4 - jQuery('#' + id + suffixes[i]).toggle();  
5 - }  
6 -}  
7 \ No newline at end of file 0 \ No newline at end of file
plugins/mezuro/public/javascripts/toogle.js 0 → 100644
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
  1 +function toogle(id){
  2 + var suffixes = ['_hidden', '_plus', '_minus'];
  3 + for (var i in suffixes){
  4 + jQuery('#' + id + suffixes[i]).toggle();
  5 + }
  6 +}
0 \ No newline at end of file 7 \ No newline at end of file
plugins/mezuro/public/style.css
1 -.d0 {  
2 - background-color: #EEEEEE  
3 -}  
4 -  
5 -.d1 {  
6 - background-color: white  
7 -}  
8 -  
9 -.collapsable { 1 +.link {
10 cursor: pointer; 2 cursor: pointer;
11 } 3 }
12 -  
13 -.metric_box {  
14 - width: 40px;  
15 - text-align: right;  
16 -}  
plugins/mezuro/test/unit/kalibro/entities/project_test.rb
@@ -2,7 +2,7 @@ class ProjectTest < Test::Unit::TestCase @@ -2,7 +2,7 @@ class ProjectTest < Test::Unit::TestCase
2 2
3 def self.qt_calculator 3 def self.qt_calculator
4 project = Kalibro::Entities::Project.new 4 project = Kalibro::Entities::Project.new
5 - project.name = 'Qt-Calculator by ProjectTest' 5 + project.name = 'Qt-Calculator'
6 project.license = 'GPL' 6 project.license = 'GPL'
7 project.description = 'Calculator for Qt' 7 project.description = 'Calculator for Qt'
8 project.repository = RepositoryTest.qt_calculator 8 project.repository = RepositoryTest.qt_calculator
@@ -12,7 +12,7 @@ class ProjectTest < Test::Unit::TestCase @@ -12,7 +12,7 @@ class ProjectTest < Test::Unit::TestCase
12 end 12 end
13 13
14 def self.qt_calculator_hash 14 def self.qt_calculator_hash
15 - {:name => 'Qt-Calculator by ProjectTest', :license => 'GPL', 15 + {:name => 'Qt-Calculator', :license => 'GPL',
16 :description => 'Calculator for Qt', 16 :description => 'Calculator for Qt',
17 :repository => RepositoryTest.qt_calculator_hash, 17 :repository => RepositoryTest.qt_calculator_hash,
18 :configuration_name => 'Kalibro for Java', 18 :configuration_name => 'Kalibro for Java',
plugins/mezuro/test/unit/mezuro_plugin_test.rb
@@ -25,7 +25,7 @@ class MezuroPluginTest < Test::Unit::TestCase @@ -25,7 +25,7 @@ class MezuroPluginTest < Test::Unit::TestCase
25 end 25 end
26 26
27 should 'list javascript files' do 27 should 'list javascript files' do
28 - assert_equal 'javascripts/collapsable.js', @plugin.js_files 28 + assert_equal 'javascripts/toogle.js', @plugin.js_files
29 end 29 end
30 30
31 end 31 end
32 \ No newline at end of file 32 \ No newline at end of file