Commit 3231cca53f2f531898ac73f4902db357bddf2219
Committed by
Álvaro Fernando Matos de Souza
1 parent
43df1ac8
Exists in
master
and in
5 other branches
Assigning css class to add slide down animation on additional information block
Showing
3 changed files
with
7 additions
and
6 deletions
Show diff stats
public/style.css
@@ -164,11 +164,12 @@ | @@ -164,11 +164,12 @@ | ||
164 | } | 164 | } |
165 | 165 | ||
166 | /*===== Communities rate hotspot extra fields =====*/ | 166 | /*===== Communities rate hotspot extra fields =====*/ |
167 | -#comments-additional-information { | ||
168 | - cursor: pointer; | ||
169 | -} | ||
170 | 167 | ||
171 | .comments-software-extra-fields div { | 168 | .comments-software-extra-fields div { |
172 | display: none; | 169 | display: none; |
173 | } | 170 | } |
174 | 171 | ||
172 | +#content .star-rate-form .star-comment-container .comments-display-fields { | ||
173 | + cursor: pointer; | ||
174 | +} | ||
175 | + |
public/views/comments-software-extra-fields.js
@@ -6,7 +6,7 @@ modulejs.define('CommentsSoftwareExtraFields', ['jquery'], function($) { | @@ -6,7 +6,7 @@ modulejs.define('CommentsSoftwareExtraFields', ['jquery'], function($) { | ||
6 | } | 6 | } |
7 | 7 | ||
8 | function set_show_additional_information() { | 8 | function set_show_additional_information() { |
9 | - $("#comments-additional-information").on("click", function() { | 9 | + $(".comments-display-fields").on("click", function() { |
10 | if (DATA.information_display_state === "hidden") { | 10 | if (DATA.information_display_state === "hidden") { |
11 | DATA.information_display_state = "show"; | 11 | DATA.information_display_state = "show"; |
12 | $(".comments-software-extra-fields div").show(); | 12 | $(".comments-software-extra-fields div").show(); |
views/comments_extra_fields.html.erb
@@ -7,13 +7,13 @@ | @@ -7,13 +7,13 @@ | ||
7 | </div> | 7 | </div> |
8 | 8 | ||
9 | <div class="comments-software-extra-fields"> | 9 | <div class="comments-software-extra-fields"> |
10 | - <div class="comments-software-people-benefited"> | 10 | + <div class="comments-software-people-benefited animated slideInDown"> |
11 | <%= label_tag "comments_people_benefited", _("Number of Beneficiaries")%> | 11 | <%= label_tag "comments_people_benefited", _("Number of Beneficiaries")%> |
12 | <span class="star-tooltip" title="Quantidade de pessoas beneficiadas com a utilização do software"></span> | 12 | <span class="star-tooltip" title="Quantidade de pessoas beneficiadas com a utilização do software"></span> |
13 | <%= text_field_tag "comments[people_benefited]", "" %> | 13 | <%= text_field_tag "comments[people_benefited]", "" %> |
14 | </div> | 14 | </div> |
15 | 15 | ||
16 | - <div class="comments-software-saved-values"> | 16 | + <div class="comments-software-saved-values animated slideInDown"> |
17 | <%= label_tag "comments_saved_value", _("Saved resources")%> | 17 | <%= label_tag "comments_saved_value", _("Saved resources")%> |
18 | <span class="star-tooltip" title="Valores em “Real” economizados com a utilização do software"></span> | 18 | <span class="star-tooltip" title="Valores em “Real” economizados com a utilização do software"></span> |
19 | <%= text_field_tag "comments[saved_value]", "", :placeholder=>"R$"%> | 19 | <%= text_field_tag "comments[saved_value]", "", :placeholder=>"R$"%> |