changed the protocol navigator: turned into switch buttons

pull/1/head
Michael Peter Christen 11 years ago
parent 3272c885ea
commit 3290375493

@ -63,6 +63,14 @@
</div>
</p>#(/searchdomswitches)#
#(nav-protocols)#::
<div class="btn-group btn-group-justified">
#{element}#
<div class="btn-group btn-group-xs"><button type="button" class="btn btn-default#(on)#:: active#(/on)#"#(on)# onclick="window.location.href='#[url]#';"::#(/on)#>#[name]# (#[count]#)</button></div>
#{/element}#
</div>
#(/nav-protocols)#
#(cat-location)#::
<a href="yacysearch_location.html?query=#[queryenc]#">
<img src="env/grafics/earthsearch.png" width="215" height="159" alt="earthsearchlogo" /></a>
@ -77,20 +85,6 @@
</script>
#(/nav-topics)#
#(nav-protocols)#::
<ul class="nav nav-sidebar menugroup">
<li><h3>Protocol Facet</h3></li>
#{element}#
<li><a href="#[url]#" class="MenuItemLink"><input type="radio" name="protocols" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
#{/element}#</ul>
#(activate)#
<script type="text/javascript">
//<![CDATA[
$(function() { $("#sidebarProtocols").accordion('activate', false); });
//]]>
</script>
::#(/activate)#
#(/nav-protocols)#
#(nav-domains)#::
<ul class="nav nav-sidebar menugroup">

@ -336,17 +336,17 @@ public class yacysearchtrailer {
nav = "%2F" + name;
if (oldProtocolModifier == null || !oldProtocolModifier.equals(name)) {
pos++;
prop.put("nav-protocols_element_" + i + "_on", 1);
prop.put("nav-protocols_element_" + i + "_on", 0);
prop.put(fileType, "nav-protocols_element_" + i + "_modifier", nav);
} else {
neg++;
prop.put("nav-protocols_element_" + i + "_on", 0);
prop.put("nav-protocols_element_" + i + "_on", 1);
prop.put(fileType, "nav-protocols_element_" + i + "_modifier", "-" + nav);
nav="";
}
prop.put(fileType, "nav-protocols_element_" + i + "_name", name);
String url = QueryParams.navurl(fileType, 0, theSearch.query, nav, false).toString();
prop.put(fileType, "nav-protocols_element_" + i + "_url", url);
prop.put(fileType, "nav-protocols_element_" + i + "_on_url", url);
prop.put("nav-protocols_element_" + i + "_count", count);
prop.put("nav-protocols_element_" + i + "_nl", 1);
i++;

Loading…
Cancel
Save