Author Topic: latest 2.3 beta sources  (Read 44918 times)

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1890
    • View Profile
Re: latest 2.3 beta sources
« on: February 22, 2015, 07:06:04 PM »
Is there not an inconsistency in this part of code? it looks like there was a reversal that creates a dysfunction in the sort file display with arrows.
     
Quote
  procedure getUri();
 .......
  else
          if s > '' then
            vars.delete(ex) //  exists, but we are trying to empty it
          else
            vars.valueFromIndex[ex]:=s; // exists, change the value
        end;

    if vars.count = 0 then exit;
.......
changed bold text to

          if s > '' then
            vars.valueFromIndex[ex]:=s; // exists, change the value
          else
            vars.delete(ex) //  exists, but we are trying to empty it
        end;



udapted hfs.tpl as

Quote
            <th>{.^sortlink|n|Name.}{.^sortlink|e|.extension.}
            <th>{.^sortlink|s|Size.}
            <th>{.^sortlink|!t|Timestamp.}
            <th>{.^sortlink|!d|Hits.}

or to correct the direction of the sort of Timestamp and Hits remove the char "-"

case sortby of
    SB_SIZE: result:=compare_(f1.size, f2.size);
    SB_TIME: result:=compare_(f1.mtime, f2.mtime);
    SB_DL: result:=compare_(f1.DLcount, f2.DLcount);


then arrows behind tittle are correct
« Last Edit: February 23, 2015, 03:06:22 PM by Mars »

Follow members gave a thank to your post: