Re: How to update file directory descriptions?
By: nelgin to Digital Man on Sun Nov 03 2024 05:21 pm
Re: How to update file directory descriptions?
By: Digital Man to nelgin on Sun Nov 03 2024 11:54:16
file_area.lib[libname].dir_list[i].description
That's a read-only JavaScript property. Writing to it won't do anything.
I figured after reading the small print. I lamented about it on irc...
Editing the msgs.ini file is the only way (either manually or via JS). I'd recommend using cfglib.js, but it hasn't been extended to support the msgs.ini file yet. :-(
Sounds like an opportunity for improvement either by having access to write to object or some other method?
cfglib.js could (and someday will) be updated to support modifying msgs.ini files, but that's probably about it. That'll make updates via JS a little easier, but if you look at init-fidonet.js, it's not that hard to using the File object as is.
There are *tons* of read-only properties in the Sync JS object model that reflect the sysop configuration. I'm not about to make all of those properties writable (and put in the back-end work to update all the right config files any time they're changed). That would be a ton of work and additional code for every little gain.
--
digital man (rob)
Breaking Bad quote #50:
I've got your restraining order right here. [grabs crotch] Restrain this! - WW Norco, CA WX: 69.1øF, 40.0% humidity, 6 mph W wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net