Commit 5fc57e970a6a5791f2c4d75b60da0a646692cffd
1 parent
4633d9f2
Exists in
master
and in
9 other branches
Fixing arrow direction on use report page's additional information block
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
theme.js
@@ -162,6 +162,22 @@ $('#link-buscar').click(function(e) { | @@ -162,6 +162,22 @@ $('#link-buscar').click(function(e) { | ||
162 | $('.star-tooltip').html("?"); | 162 | $('.star-tooltip').html("?"); |
163 | } | 163 | } |
164 | 164 | ||
165 | + function set_arrow_direction() { | ||
166 | + var additional_data_bar = $('#comments-additional-information'); | ||
167 | + var arrow = $('.comments-arrow-down'); | ||
168 | + var state = 0; | ||
169 | + | ||
170 | + additional_data_bar.on('click', function() { | ||
171 | + if(state === 0) { | ||
172 | + arrow.attr('class', "comments-arrow-up") | ||
173 | + state = 1; | ||
174 | + } else { | ||
175 | + state = 0; | ||
176 | + arrow.attr('class', "comments-arrow-down"); | ||
177 | + } | ||
178 | + }); | ||
179 | + } | ||
180 | + | ||
165 | $(document).ready(function(){ | 181 | $(document).ready(function(){ |
166 | set_events(); | 182 | set_events(); |
167 | move_article_buttons(); | 183 | move_article_buttons(); |
@@ -169,5 +185,6 @@ $('#link-buscar').click(function(e) { | @@ -169,5 +185,6 @@ $('#link-buscar').click(function(e) { | ||
169 | insert_notice_div(); | 185 | insert_notice_div(); |
170 | set_uploaded_files_names(); | 186 | set_uploaded_files_names(); |
171 | set_tooltip_content(); | 187 | set_tooltip_content(); |
188 | + set_arrow_direction(); | ||
172 | }); | 189 | }); |
173 | })(jQuery); | 190 | })(jQuery); |