Commit 500ca7e31ef8ea361dbad3822db490bbb008c5a8
Committed by
Thiago Ribeiro
1 parent
862b12f8
Exists in
master
and in
9 other branches
Fixing catalog animation
Signed-off-by: ArthurJahn <stutrzbecher@gmail.com>
Signed-off-by: Alvaro Fernando <alvarofernandoms@gmail.com>
Signed-off-by: Luiz Oliveira <ziuloliveiria@gmail.com>
Showing
2 changed files
with
17 additions
and
11 deletions
Show diff stats
css/software-catalog-page.css
| ... | ... | @@ -117,13 +117,15 @@ |
| 117 | 117 | |
| 118 | 118 | .action-search-software_infos #filter-catalog-software #filter-categories-option { |
| 119 | 119 | border: none; |
| 120 | + height: 0; | |
| 121 | + max-height: 620px; | |
| 120 | 122 | position: relative; |
| 121 | - display: none; | |
| 122 | 123 | overflow: hidden; |
| 124 | + padding: 0 15px; | |
| 123 | 125 | } |
| 124 | 126 | |
| 125 | 127 | .action-search-software_infos #filter-catalog-software #filter-categories-catalog h4 { |
| 126 | - margin: 5px 0 10px 5px; | |
| 128 | + margin: 20px 0 10px 5px; | |
| 127 | 129 | background: transparent; |
| 128 | 130 | color: black; |
| 129 | 131 | } | ... | ... |
theme.js
| ... | ... | @@ -133,16 +133,22 @@ $('#link-buscar').click(function(e) { |
| 133 | 133 | var filterOptions = $("#filter-categories-option"); |
| 134 | 134 | var showOptions = $("#filter-option-catalog-software"); |
| 135 | 135 | var hideOptions = $("#filter-option-catalog-close"); |
| 136 | - if(filterOptions.is(":visible")){ | |
| 137 | - filterOptions.slideUp(function() { | |
| 138 | - showOptions.show(); | |
| 139 | - hideOptions.hide(); | |
| 140 | - }); | |
| 136 | + if(hideOptions.is(":visible")){ | |
| 137 | + //filterOptions.slideUp(function() { | |
| 138 | + showOptions.show(); | |
| 139 | + hideOptions.hide(); | |
| 140 | + //}); | |
| 141 | + filterOptions.animate({ | |
| 142 | + height: 0 | |
| 143 | + },500); | |
| 141 | 144 | } |
| 142 | 145 | else { |
| 143 | - filterOptions.slideDown(); | |
| 144 | 146 | showOptions.hide(); |
| 145 | 147 | hideOptions.show(); |
| 148 | + filterOptions.animate({ | |
| 149 | + height: 565 | |
| 150 | + },500); | |
| 151 | + | |
| 146 | 152 | } |
| 147 | 153 | } |
| 148 | 154 | |
| ... | ... | @@ -245,7 +251,6 @@ $('#link-buscar').click(function(e) { |
| 245 | 251 | $(document).ready(function(){ |
| 246 | 252 | |
| 247 | 253 | add_top_tooltips(); |
| 248 | - set_events(); | |
| 249 | 254 | move_article_buttons(); |
| 250 | 255 | add_link_to_article_div(); |
| 251 | 256 | insert_notice_div(); |
| ... | ... | @@ -253,8 +258,7 @@ $('#link-buscar').click(function(e) { |
| 253 | 258 | set_tooltip_content(); |
| 254 | 259 | set_arrow_direction(); |
| 255 | 260 | set_use_report_content(); |
| 256 | - | |
| 257 | - setEvents(); //FIX-ME | |
| 261 | + setEvents(); | |
| 258 | 262 | move_article_buttons(); |
| 259 | 263 | add_link_to_article_div(); |
| 260 | 264 | insert_notice_div(); | ... | ... |