Commit 500ca7e31ef8ea361dbad3822db490bbb008c5a8
Committed by
Thiago Ribeiro
1 parent
862b12f8
Exists in
master
and in
79 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,13 +117,15 @@ | ||
117 | 117 | ||
118 | .action-search-software_infos #filter-catalog-software #filter-categories-option { | 118 | .action-search-software_infos #filter-catalog-software #filter-categories-option { |
119 | border: none; | 119 | border: none; |
120 | + height: 0; | ||
121 | + max-height: 620px; | ||
120 | position: relative; | 122 | position: relative; |
121 | - display: none; | ||
122 | overflow: hidden; | 123 | overflow: hidden; |
124 | + padding: 0 15px; | ||
123 | } | 125 | } |
124 | 126 | ||
125 | .action-search-software_infos #filter-catalog-software #filter-categories-catalog h4 { | 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 | background: transparent; | 129 | background: transparent; |
128 | color: black; | 130 | color: black; |
129 | } | 131 | } |
theme.js
@@ -133,16 +133,22 @@ $('#link-buscar').click(function(e) { | @@ -133,16 +133,22 @@ $('#link-buscar').click(function(e) { | ||
133 | var filterOptions = $("#filter-categories-option"); | 133 | var filterOptions = $("#filter-categories-option"); |
134 | var showOptions = $("#filter-option-catalog-software"); | 134 | var showOptions = $("#filter-option-catalog-software"); |
135 | var hideOptions = $("#filter-option-catalog-close"); | 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 | else { | 145 | else { |
143 | - filterOptions.slideDown(); | ||
144 | showOptions.hide(); | 146 | showOptions.hide(); |
145 | hideOptions.show(); | 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,7 +251,6 @@ $('#link-buscar').click(function(e) { | ||
245 | $(document).ready(function(){ | 251 | $(document).ready(function(){ |
246 | 252 | ||
247 | add_top_tooltips(); | 253 | add_top_tooltips(); |
248 | - set_events(); | ||
249 | move_article_buttons(); | 254 | move_article_buttons(); |
250 | add_link_to_article_div(); | 255 | add_link_to_article_div(); |
251 | insert_notice_div(); | 256 | insert_notice_div(); |
@@ -253,8 +258,7 @@ $('#link-buscar').click(function(e) { | @@ -253,8 +258,7 @@ $('#link-buscar').click(function(e) { | ||
253 | set_tooltip_content(); | 258 | set_tooltip_content(); |
254 | set_arrow_direction(); | 259 | set_arrow_direction(); |
255 | set_use_report_content(); | 260 | set_use_report_content(); |
256 | - | ||
257 | - setEvents(); //FIX-ME | 261 | + setEvents(); |
258 | move_article_buttons(); | 262 | move_article_buttons(); |
259 | add_link_to_article_div(); | 263 | add_link_to_article_div(); |
260 | insert_notice_div(); | 264 | insert_notice_div(); |