Actions
Defect #41054
closedIssues options aren't hidden at start
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues filter
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
File app/views/queries/_query_form.html.erb
has <fieldset id="options"
which contains <div class="hidden">.
This div should have style="display: none" to work properly with function
function toggleFieldset(el) {
var fieldset = $(el).parents('fieldset').first();
fieldset.toggleClass('collapsed');
fieldset.children('legend').toggleClass('icon-expanded icon-collapsed');
fieldset.children('div').toggle();
}
Explanation:
<fieldset> and <legend> works fine, beacuse they have appropriate class to be hidden.
<div> hasn't style="display: none", so jQuery function toggle() toggles "display" property opposite way.
Actions