Permalink
Browse files

Added HTML ids to search navigators for a more reliable JS refreshing.

  • Loading branch information...
luccioman committed Sep 15, 2017
1 parent ad61a3a commit 4ab961fa46e03c475b11f61e6112cf093e191e52
Showing with 9 additions and 14 deletions.
  1. +6 −11 htroot/js/yacysort.js
  2. +3 −3 htroot/yacysearchtrailer.html
@@ -248,25 +248,20 @@ var processSidebar = function(data) {
// TODO: nav-dates
// domains (AKA providers)
// TODO: test domains
// TODO: we should assign an "id" attribute to the "domains" <ul>.
processSidebarMenuGroup($("#domains_0").parent(), newSidebar.find("#domains_0").parent());
// TODO: test hosts
processSidebarMenuGroup($("#nav-hosts"), newSidebar.find("#nav-hosts"));
// TODO: test languages
// TODO: we should assign an "id" attribute to the "languages" <ul>.
processSidebarMenuGroup($("#languages_0").parent(), newSidebar.find("#languages_0").parent());
processSidebarMenuGroup($("#nav-languages"), newSidebar.find("#nav-languages"));
// TODO: test authors
// TODO: we should assign an "id" attribute to the "authors" <ul>.
processSidebarMenuGroup($("#authors_0").parent(), newSidebar.find("#authors_0").parent());
processSidebarMenuGroup($("#nav-authors"), newSidebar.find("#nav-authors"));
// TODO: test Wiki Name Space
// TODO: we should assign an "id" attribute to the "namespace" <ul>.
processSidebarMenuGroup($("#namespace_0").parent(), newSidebar.find("#namespace_0").parent());
processSidebarMenuGroup($("#nav-namespace"), newSidebar.find("#nav-namespace"));
// TODO: test filetype
// TODO: we should assign an "id" attribute to the "filetype" <ul>.
processSidebarMenuGroup($("#filetype_0").parent(), newSidebar.find("#filetype_0").parent());
processSidebarMenuGroup($("#nav-filetype"), newSidebar.find("#nav-filetype"));
// TODO: navs
@@ -158,7 +158,7 @@
</script>
#(nav-languages)#::
<ul class="nav nav-sidebar menugroup">
<ul id="nav-languages" class="nav nav-sidebar menugroup">
<li style="cursor: pointer; cursor: hand;"><h3 onclick="toggleVisibility('languages', #[count]#);">Language [#[count]#] <span style="float:right" id="chevron-languages" class="glyphicon glyphicon-chevron-down" title="click to expand facet"></span></h3></li>
#{element}#
<li style="display:none" id="#[id]#"><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
@@ -167,7 +167,7 @@
#(/nav-languages)#
#{navs}#
<ul class="nav nav-sidebar menugroup">
<ul id="nav-#[name]#" class="nav nav-sidebar menugroup">
<li style="cursor: pointer; cursor: hand;"><h3 onclick="toggleVisibility('#[name]#', #[count]#);">#[displayname]# [#[count]#] <span style="float:right" id="chevron-#[name]#" class="glyphicon glyphicon-chevron-down" title="click to expand facet"></span></h3></li>
#{element}#
<li style="display:none" id="#[id]#"><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
@@ -176,7 +176,7 @@
#{/navs}#
#{nav-vocabulary}#
<ul class="nav nav-sidebar menugroup">
<ul id="nav-vocabulary" class="nav nav-sidebar menugroup">
<li style="cursor: pointer; cursor: hand;"><h3 onclick="toggleVisibility('vocabulary_#[navname]#', #[count]#);">#[navname]# [#[count]#] <span style="float:right" id="chevron-vocabulary_#[navname]#" class="glyphicon glyphicon-chevron-down" title="click to expand facet"></span></h3></li>
#{element}#
<li style="display:none" id="#[id]#"><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>

0 comments on commit 4ab961f

Please sign in to comment.