I have a question about using ddfilelister.js to list files (of course). It works fine, no bug to mention, but I'm curious if there is an option to display the full (long) filename to the right in the listing of files when there is no extended description.
Is there an option to do this? Or should I dig into the .js and have a look. I have been looking through the script and may be able to accomplish this, but if it's already an option I'd rather just do that :)
I have a question about using ddfilelister.js to list files (of course).
It works fine, no bug to mention, but I'm curious if there is an option
to display the full (long) filename to the right in the listing of files
when there is no extended description.
Is there an option to do this? Or should I dig into the .js and have a
look. I have been looking through the script and may be able to
accomplish this, but if it's already an option I'd rather just do that :)
I seem to have this working fine now by adding two lines to ddfilelister.js (at line 3400 on my copy): if(desc == "")
desc = gFileList[pIdx].name;
I seem to have this working fine now by adding two lines to ddfilelister.js (at line 3400 on my copy):
if(desc == "")
desc = gFileList[pIdx].name;
Any chance I'm breaking something else? (That's how I write code btw, by breaking other stuff :)
I seem to have this working fine now by adding two lines to
ddfilelister.js (at line 3400 on my copy): if(desc == "")
desc = gFileList[pIdx].name;
Any chance I'm breaking something else? (That's how I write code btw, by
breaking other stuff :)
I don't think that would break anything. And I could add that as a configuration option.
It works fine, no bug to mention, but I'm curious if there is an option
to display the full (long) filename to the right in the listing of files
when there is no extended description.
It works fine, no bug to mention, but I'm curious if there is an option
to display the full (long) filename to the right in the listing of
files when there is no extended description.
I've added this as a configuration option, and it looks like my update has been merged. With the latest update, there is a configuration setting, useFilenameIfNoDescription, which you can set to true (which is the default) to enable this behavior.
Sysop: | Luis Silva |
---|---|
Location: | Lisbon |
Users: | 763 |
Nodes: | 10 (0 / 10) |
Uptime: | 19:34:15 |
Calls: | 133 |
Calls today: | 4 |
Files: | 46,971 |
Messages: | 11,665 |