Commit 517bea58 authored by Ian Dennis Miller's avatar Ian Dennis Miller

article unfilters when picker is opened

parent 38813f12
......@@ -23,10 +23,18 @@ var toggle_article = function(id) {
close_ui();
}
else {
filtered = false;
untoggle_article();
}
}
var untoggle_article = function() {
filtered = false;
var buttons = document.querySelectorAll('#article-list a.filtered');
for (var i = 0; i < buttons.length; i++) {
var button = buttons[i];
button.classList.remove('filtered');
show_all();
}
show_all();
}
var hide_picker = function() {
......@@ -39,6 +47,7 @@ var show_picker = function() {
var els = document.querySelectorAll('#article-list');
els[0].style.display = "block";
hide_keywords();
untoggle_article();
open_ui();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment