Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
AO3-5209 Don't change the appearance of non-work & bookmark filters #3117
Conversation
sarken
added some commits
Oct 22, 2017
sarken
added
the
Awaiting review
label
Oct 23, 2017
| @@ -0,0 +1 @@ | ||
| +function showFilters(){var e=$j("dd.tags");e.each(function(e,r){var t=$j(r).find("input"),i=$j(r),n=$j("."+i.attr("id")+"_open"),s=$j("."+i.attr("id")+"_close");t.each(function(e,t){$j(t).is(":checked")&&($j(r).show(),$j(n).hide(),$j(s).show())})})}function setupNarrowScreenFilters(){var e=$j("form.old-filters"),r=$j("#outer"),t=$j("#go_to_filters"),i=$j("#leave_filters");t.click(function(t){t.preventDefault(),e.removeClass("narrow-hidden"),r.addClass("filtering"),e.find(":focusable").first().focus(),e.trap()}),i.click(function(i){i.preventDefault(),r.removeClass("filtering"),e.addClass("narrow-hidden"),t.focus()})}$j(document).ready(function(){showFilters(),setupNarrowScreenFilters()}); |
houndci-bot
Oct 23, 2017
Line is too long.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
'$j' is not defined.
| +/* INTERACTION: OLD FILTERS */ | ||
| +/* ES UPGRADE TRANSITION: REMOVE WHEN DONE */ | ||
| + | ||
| +form.old-filters { |
sarken
Oct 23, 2017
Owner
old-filters 100% violates our class naming conventions, but this is definitely temporary, so I figure we can live with it.
| @@ -0,0 +1 @@ | ||
| +function showFilters(){var e=$j("dd.tags");e.each(function(e,r){var t=$j(r).find("input"),i=$j(r),n=$j("."+i.attr("id")+"_open"),s=$j("."+i.attr("id")+"_close");t.each(function(e,t){$j(t).is(":checked")&&($j(r).show(),$j(n).hide(),$j(s).show())})})}function setupNarrowScreenFilters(){var e=$j("form.old-filters"),r=$j("#outer"),t=$j("#go_to_filters"),i=$j("#leave_filters");t.click(function(t){t.preventDefault(),e.removeClass("narrow-hidden"),r.addClass("filtering"),e.find(":focusable").first().focus(),e.trap()}),i.click(function(i){i.preventDefault(),r.removeClass("filtering"),e.addClass("narrow-hidden"),t.focus()})}$j(document).ready(function(){showFilters(),setupNarrowScreenFilters()}); |
sarken
Oct 23, 2017
Owner
I'm only restoring the minified version of the old filter JavaScript because I couldn't think of a good reason to restore the non-minified version.
sarken
added
the
Priority: Broken on Test (High)
label
Oct 23, 2017
elzj
merged commit 46596a3
into
otwcode:master
Oct 23, 2017
added a commit
that referenced
this pull request
Nov 27, 2017
added a commit
that referenced
this pull request
Nov 27, 2017
added a commit
that referenced
this pull request
Nov 30, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sarken commentedOct 23, 2017
Issue
https://otwarchive.atlassian.net/browse/AO3-5209
Purpose
Restores the old HTML, JavaScript, and CSS for the Elasticsearch 0.90 filters. Reworks the CSS for the new filters so it doesn't negatively affect the styling of the filters on the Collections index.
Testing
Compare the work and bookmark filters when using Elasticsearch 0.90 on staging to those on production, and compare the collections filters to those on production.