remove not used accordion javascript call for facet navs

pull/1/head
reger 10 years ago
parent e4316e2d74
commit c1ad265efd

@ -78,8 +78,6 @@
<div id="tagcloud" style="text-align:justify">#{element}#
<a rel="#[count]#" href="#[url]#" style="text-decoration:none;font-size:#[size]#px;">#[name]#</a>
#{/element}#</div>
<script type="text/javascript" charset="utf-8">
</script>
#(/nav-topics)#
#(cat-location)#::
@ -99,13 +97,6 @@ show search results for "#[query]#" on map</a>
#{element}#
<li><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
#{/element}#</ul>
#(activate)#
<script type="text/javascript">
//<![CDATA[
$(function() { $("#sidebarDomains").accordion('activate', false); });
//]]>
</script>
::#(/activate)#
#(/nav-domains)#
#(nav-filetypes)#::
@ -114,13 +105,6 @@ $(function() { $("#sidebarDomains").accordion('activate', false); });
#{element}#
<li><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
#{/element}#</ul>
#(activate)#
<script type="text/javascript">
//<![CDATA[
$(function() { $("#sidebarFiletypes").accordion('activate', false); });
//]]>
</script>
::#(/activate)#
#(/nav-filetypes)#
#(nav-languages)#::
@ -129,13 +113,6 @@ $(function() { $("#sidebarFiletypes").accordion('activate', false); });
#{element}#
<li><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
#{/element}#</ul>
#(activate)#
<script type="text/javascript">
//<![CDATA[
$(function() { $("#sidebarLanguages").accordion('activate', false); });
//]]>
</script>
::#(/activate)#
#(/nav-languages)#
#(nav-namespace)#::
@ -144,13 +121,6 @@ $(function() { $("#sidebarLanguages").accordion('activate', false); });
#{element}#
<li><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
#{/element}#</ul>
#(activate)#
<script type="text/javascript">
//<![CDATA[
$(function() { $("#sidebarNameSpace").accordion('activate', false); });
//]]>
</script>
::#(/activate)#
#(/nav-namespace)#
#(nav-authors)#::
@ -159,13 +129,6 @@ $(function() { $("#sidebarNameSpace").accordion('activate', false); });
#{element}#
<li><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
#{/element}#</ul>
#(activate)#
<script type="text/javascript">
//<![CDATA[
$(function() { $("#sidebarAuthors").accordion('activate', false); });
//]]>
</script>
::#(/activate)#
#(/nav-authors)#
#(nav-collections)#::
@ -174,13 +137,6 @@ $(function() { $("#sidebarAuthors").accordion('activate', false); });
#{element}#
<li><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
#{/element}#</ul>
#(activate)#
<script type="text/javascript">
//<![CDATA[
$(function() { $("#sidebarCollections").accordion('activate', false); });
//]]>
</script>
::#(/activate)#
#(/nav-collections)#
#{nav-vocabulary}#

@ -131,7 +131,6 @@ public class yacysearchtrailer {
i++;
}
prop.put("nav-namespace_element", i);
prop.put("nav-namespace_activate", on(pos, neg, MAXLIMIT_NAV_LOW) ? 1 : 0);
i--;
prop.put("nav-namespace_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0)
@ -173,7 +172,6 @@ public class yacysearchtrailer {
i++;
}
prop.put("nav-domains_element", i);
prop.put("nav-domains_activate", on(pos, neg, MAXLIMIT_NAV_HIGH) ? 1 : 0);
i--;
prop.put("nav-domains_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0)
@ -216,7 +214,6 @@ public class yacysearchtrailer {
i++;
}
prop.put("nav-languages_element", i);
prop.put("nav-languages_activate", on(pos, neg, MAXLIMIT_NAV_HIGH) ? 1 : 0);
i--;
prop.put("nav-languages_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0)
@ -257,7 +254,6 @@ public class yacysearchtrailer {
i++;
}
prop.put("nav-authors_element", i);
prop.put("nav-authors_activate", neg > 0 ? 1 : 0); // by default off
i--;
prop.put("nav-authors_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0)
@ -298,7 +294,6 @@ public class yacysearchtrailer {
i++;
}
prop.put("nav-collections_element", i);
prop.put("nav-collections_activate", neg > 0 ? 1 : 0); // by default off
i--;
prop.put("nav-collections_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0)
@ -396,7 +391,6 @@ public class yacysearchtrailer {
if (oldProtocolModifier != null && oldProtocolModifier.length() > 0) theSearch.query.modifier.add(oldProtocolModifier.startsWith("/") ? oldProtocolModifier : "/" + oldProtocolModifier);
theSearch.query.getQueryGoal().query_original = oldQuery;
prop.put("nav-protocols_element", i);
prop.put("nav-protocols_activate", neg > 0 || visible ? 1 : 0); // by default off
i--;
prop.put("nav-protocols_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0)
@ -439,7 +433,6 @@ public class yacysearchtrailer {
i++;
}
prop.put("nav-filetypes_element", i);
prop.put("nav-filetypes_activate", neg > 0 || visible ? 1 : 0); // by default off
i--;
prop.put("nav-filetypes_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0)

Loading…
Cancel
Save