From 5fc57e970a6a5791f2c4d75b60da0a646692cffd Mon Sep 17 00:00:00 2001 From: pedrodelyra Date: Tue, 21 Jul 2015 17:48:04 -0300 Subject: [PATCH] Fixing arrow direction on use report page's additional information block --- theme.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+), 0 deletions(-) diff --git a/theme.js b/theme.js index 2e03eea..288c17e 100644 --- a/theme.js +++ b/theme.js @@ -162,6 +162,22 @@ $('#link-buscar').click(function(e) { $('.star-tooltip').html("?"); } + function set_arrow_direction() { + var additional_data_bar = $('#comments-additional-information'); + var arrow = $('.comments-arrow-down'); + var state = 0; + + additional_data_bar.on('click', function() { + if(state === 0) { + arrow.attr('class', "comments-arrow-up") + state = 1; + } else { + state = 0; + arrow.attr('class', "comments-arrow-down"); + } + }); + } + $(document).ready(function(){ set_events(); move_article_buttons(); @@ -169,5 +185,6 @@ $('#link-buscar').click(function(e) { insert_notice_div(); set_uploaded_files_names(); set_tooltip_content(); + set_arrow_direction(); }); })(jQuery); -- libgit2 0.21.2