Commit dadccaa4 authored by Camil Staps's avatar Camil Staps 🍃

Some frontend enhancements related to suggestions

parent a579b808
......@@ -104,6 +104,7 @@ function toggleLibSelection(className) {
function toggleAdvanced() {
advanced = !advanced;
toggleById('advanced');
document.getElementById('searchlinks').children[0].classList.toggle('active');
}
function makeSummary(hidden) {
......@@ -751,7 +752,7 @@ function getResults(str, libs, include_builtins, include_core, include_apps, pag
if ('unify' in sug) {
sugstr.push(':: ' + sug.unify);
}
if ('include_apps' in sug) {
if ('include_apps' in sug && sug['include_apps'] != include_apps) {
query.push('include_apps=' + sug['include_apps']);
sugstrmeta.push((sug['include_apps'] ? '' : 'not ') + 'including apps');
}
......
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