Commit 2429ca316d8a1738e07ad098c0893ee84183582e
1 parent
92937ed6
Exists in
master
and in
29 other branches
ActionItem8: not displaying the help message by default.
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@127 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -128,7 +128,7 @@ module ApplicationHelper |
128 | 128 | # message DIV |
129 | 129 | button = link_to_function(_('Help'), "alert('change me, Leandro!')") |
130 | 130 | |
131 | - text = content_tag('div', button + content_tag('div', content, :class => 'help_message'), :class => 'help_box') | |
131 | + text = content_tag('div', button + content_tag('div', content, :class => 'help_message', :style => 'display: none;'), :class => 'help_box') | |
132 | 132 | |
133 | 133 | unless block.nil? |
134 | 134 | concat(text, block.binding) | ... | ... |
test/functional/application_controller_test.rb
... | ... | @@ -61,7 +61,7 @@ class ApplicationControllerTest < Test::Unit::TestCase |
61 | 61 | :descendant => { |
62 | 62 | :tag => 'div', |
63 | 63 | :content => /my_help_message/, |
64 | - :attributes => { :class => 'help_message'} | |
64 | + :attributes => { :class => 'help_message', :style => /display:\s+none/} | |
65 | 65 | } |
66 | 66 | }) |
67 | 67 | end |
... | ... | @@ -74,7 +74,7 @@ class ApplicationControllerTest < Test::Unit::TestCase |
74 | 74 | :descendant => { |
75 | 75 | :tag => 'div', |
76 | 76 | :content => /my_help_message/, |
77 | - :attributes => { :class => 'help_message'} | |
77 | + :attributes => { :class => 'help_message', :style => /display:\s+none/} | |
78 | 78 | } |
79 | 79 | }) |
80 | 80 | end |
... | ... | @@ -86,7 +86,7 @@ class ApplicationControllerTest < Test::Unit::TestCase |
86 | 86 | :attributes => { :class => 'help_box'}, |
87 | 87 | :descendant => { |
88 | 88 | :tag => 'div', |
89 | - :attributes => { :class => 'help_message'}, | |
89 | + :attributes => { :class => 'help_message', :style => /display:\s+none/}, | |
90 | 90 | :descendant => { |
91 | 91 | :tag => 'strong', |
92 | 92 | :content => /my_bold_help_message/ |
... | ... | @@ -102,7 +102,7 @@ class ApplicationControllerTest < Test::Unit::TestCase |
102 | 102 | :attributes => { :class => 'help_box'}, |
103 | 103 | :descendant => { |
104 | 104 | :tag => 'div', |
105 | - :attributes => { :class => 'help_message'}, | |
105 | + :attributes => { :class => 'help_message', :style => /display:\s+none/}, | |
106 | 106 | :descendant => { |
107 | 107 | :tag => 'strong', |
108 | 108 | :content => /my_bold_help_message/ | ... | ... |