• exec/load/tree.js

    From echicken@VERT to CVS commit on Mon May 4 08:20:11 2020
    exec/load tree.js 1.30 1.31
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv12247

    Modified Files:
    tree.js
    Log Message:
    Mouse support.
    If the calling script passes a mouse_getkey value,
    scroll up/down while hovering over tree frame moves lightbar up/down
    click on an item to select it (need to test with a scrolled tree)


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Mon May 4 08:24:30 2020
    exec/load tree.js 1.31 1.32
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv13220

    Modified Files:
    tree.js
    Log Message:
    remove log barf


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Mon May 4 19:16:23 2020
    exec/load tree.js 1.32 1.33
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv32229

    Modified Files:
    tree.js
    Log Message:
    Only do mouse things if the event is a 'press'.
    Scroll wheel stuff now works with SyncTERM if your script enables
    mouse input in normal_tracking mode (and if your SyncTERM is up
    to date.)


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Dec 5 17:00:15 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/32ebf886804dcd99046fd969
    Modified Files:
    exec/load/tree.js
    Log Message:
    Address occasional TypeError: this.current is undefined
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed Feb 18 18:33:30 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0742ce5990f1c31f0fe99682
    Modified Files:
    exec/load/tree.js
    Log Message:
    Fix issue with PageDown key when number of items > frame height

    When the number of items in the tree was > the frame height and the number of remaining items was less than a full page and the PgDn key was hit, a item's return value that was non-sensical. Instead, just select the last item in this case,
    don't return.

    Test case using uselect_tree.js as Select Item loadable module:

    for(var i = 0; i < 40; ++i)
    console.uselect(i, "Choose", String(i));
    var result = console.uselect();
    print(typeof result + " = " + result);

    Hitting page down a couple of times with this script would return 15. It
    should not have returned at all until ENTER was hit to select and item and the number 15 made no sense.
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net