Changeset aafccc0


Ignore:
Timestamp:
Oct 6, 2018 5:40:05 PM (20 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
0cd67ac
Parents:
ff1e53a
Message:

Console: Fix SSU sort links broken in last checkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/helpers/UDPSorters.java

    rff1e53a raafccc0  
    287287    static void appendSortLinks(StringBuilder buf, String urlBase, int sortFlags, String descr, int ascending) {
    288288        if (ascending == FLAG_ALPHA) {  // 0
    289             buf.append(" <span class=\"sortdown\"><a href=\"").append(urlBase).append("?sort=0" +
    290                        "#udpcon\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/inbound.png\" alt=\"V\"></a></span>");
     289            buf.append("<span class=\"sortdown\"><a href=\"").append(urlBase).append("?tx=ssu&amp;sort=0" +
     290                       "\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/inbound.png\" alt=\"V\"></a></span>");
    291291        } else if (sortFlags == ascending) {
    292             buf.append(" <span class=\"sortdown\"><a href=\"").append(urlBase).append("?sort=").append(0-ascending);
    293             buf.append("#udpcon\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/inbound.png\" alt=\"V\"></a></span>" +
     292            buf.append(" <span class=\"sortdown\"><a href=\"").append(urlBase).append("?tx=ssu&amp;sort=").append(0-ascending);
     293            buf.append("\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/inbound.png\" alt=\"V\"></a></span>" +
    294294                       "<span class=\"sortupactive\"><b><img src=\"/themes/console/images/outbound.png\" alt=\"^\"></b></span>");
    295295        } else if (sortFlags == 0 - ascending) {
    296296            buf.append(" <span class=\"sortdownactive\"><b><img src=\"/themes/console/images/inbound.png\" alt=\"V\"></b></span><span class=\"sortup\"><a href=\"")
    297                .append(urlBase).append("?sort=").append(ascending);
    298             buf.append("#udpcon\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/outbound.png\" alt=\"^\"></a></span>");
     297               .append(urlBase).append("?tx=ssu&amp;sort=").append(ascending);
     298            buf.append("\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/outbound.png\" alt=\"^\"></a></span>");
    299299        } else {
    300             buf.append(" <span class=\"sortdown\"><a href=\"").append(urlBase).append("?sort=").append(0-ascending);
    301             buf.append("#udpcon\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/inbound.png\" alt=\"V\"></a></span>" +
    302                        "<span class=\"sortup\"><a href=\"").append(urlBase).append("?sort=").append(ascending);
    303             buf.append("#udpcon\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/outbound.png\" alt=\"^\"></a></span>");
     300            buf.append(" <span class=\"sortdown\"><a href=\"").append(urlBase).append("?tx=ssu&amp;sort=").append(0-ascending);
     301            buf.append("\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/inbound.png\" alt=\"V\"></a></span>" +
     302                       "<span class=\"sortup\"><a href=\"").append(urlBase).append("?tx=ssu&amp;sort=").append(ascending);
     303            buf.append("\" title=\"").append(descr).append("\"><img src=\"/themes/console/images/outbound.png\" alt=\"^\"></a></span>");
    304304        }
    305305    }
Note: See TracChangeset for help on using the changeset viewer.