-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
JavaScriptbugthe issue is regarding one of our programs which faces problems when a certain task is executedthe issue is regarding one of our programs which faces problems when a certain task is executedfto-candidateissues which are meant to be solved by first timers but aren't well-formatted yetissues which are meant to be solved by first timers but aren't well-formatted yet
Description
When the chevron-down icon is clicked, the #sidebar section is supposed to be hidden but currently it doesn't work. This only applies to sm and md screens.
You can see a demonstration of this in https://publiclab.org/questions/warren/01-04-2018/how-good-is-the-purpleair-sensor-and-what-does-it-detect
The relevant code needed for this change can be found in
plots2/app/assets/javascripts/sidebar.js
Lines 1 to 9 in 99f3520
| function toggle_sidebar() { | |
| if ($('#sidebar').hasClass('hidden-sm')) { | |
| $('#sidebar').removeClass('hidden-sm') | |
| .removeClass('hidden-xs') | |
| } else { | |
| $('#sidebar').addClass('hidden-sm') | |
| .addClass('hidden-xs') | |
| } | |
| } |
plots2/app/views/sidebar/_question.html.erb
Lines 5 to 7 in 99f3520
| <a style="margin-top:-16px;margin-bottom:0;" class="btn btn-sm btn-block btn-link d-lg-none" href="javascript:void()" onClick="toggle_sidebar()"><i class="fa fa-chevron-down"></i></a> | |
| <div id="sidebar" class="d-lg-inline"> |
ebarry
Metadata
Metadata
Assignees
Labels
JavaScriptbugthe issue is regarding one of our programs which faces problems when a certain task is executedthe issue is regarding one of our programs which faces problems when a certain task is executedfto-candidateissues which are meant to be solved by first timers but aren't well-formatted yetissues which are meant to be solved by first timers but aren't well-formatted yet
