LinuxDir2HTML icon indicating copy to clipboard operation
LinuxDir2HTML copied to clipboard

Export functions fail if the content is modified

Open ghost opened this issue 4 years ago • 1 comments

Hi, The textarea in the exported view seems to be in a read-write state. If the user edit the content (delete a line for example), the functions (csv, json, fullpath...) are broken and the HTML page need to be reload.

Add a disabled flag could be a quick fix to avoid this :

<textarea disabled id="export_text" class="export_text" wrap="off"></textarea>

In addition, it will be interesting to implement a feature which allow a multiple selection across different folders, by adding in the main table a column on the left with a checkbox to select files or folders and push the selection in a new array to feed the export. I can work on this.

ghost avatar Aug 24 '21 16:08 ghost

Thanks for the report, but this is an issue with the template which I didn't create and don't particularly wish to patch myself, as I'd rather not diverge from upstream. You may want to report this to Dan, who created the original Snap2HTML -> https://github.com/rlv-dan/Snap2HTML. I'm sure he'd take the suggested fix into consideration.

Now that you've mentioned this issue, though, I've tried using the export feature and it seems unreliable, at least in Firefox, until a cache reload (ctrl+f5) is performed.

homeisfar avatar Sep 16 '21 16:09 homeisfar