Due to the heavy modifications made to upstream code, I made this new pull request based on the latest develop branch. Most of the features are the same as the original pull request, plus a few fixes for bugs that got their way in during the last few commits.
Plugin Features:
Combine getfiles.php and getdirs.php into one script: listdir.php;
Return the directory list in JSON format and render it in an HTML <dialog> instead of returning server-rendered HTML and display it in an `
Attach the directory list frame to the root node (actually a wrapper #dir-container), instead of the containing dialog window, so that the frame can grow outside the boundary of the dialog window and still show up properly. Otherwise, the directory list would be "clipped" when the height exceeds that of its containing window. The original Save To window used an invisible pad attached to the bottom to contain the extra height of the frame. In my previous flex layout patch, I increased the gap between the options so that the window would be high enough to contain the frame. Now the problem is solved.
Add a linkage to the directory list frame and its containing window for drap-n-drop movement, since the frame now don't belong to the containing window, it would not have moved automatically with the window.
Allow navigating through the directories using arrow keys: ArrowUP and ArrowDown for selecting, ArrowRight for entering the selected directory, ArrowLeft for going back to the parent directory, Home and End for going to the top and the end respectively;
Adapt the directory list frame to different themes.
Due to the heavy modifications made to upstream code, I made this new pull request based on the latest develop branch. Most of the features are the same as the original pull request, plus a few fixes for bugs that got their way in during the last few commits.
Plugin Features:
listdir.php
;<dialog>
instead of returning server-rendered HTML and display it in an `#dir-container
), instead of the containing dialog window, so that the frame can grow outside the boundary of the dialog window and still show up properly. Otherwise, the directory list would be "clipped" when the height exceeds that of its containing window. The original Save To window used an invisible pad attached to the bottom to contain the extra height of the frame. In my previous flex layout patch, I increased the gap between the options so that the window would be high enough to contain the frame. Now the problem is solved.ArrowUP
andArrowDown
for selecting,ArrowRight
for entering the selected directory,ArrowLeft
for going back to the parent directory,Home
andEnd
for going to the top and the end respectively;Original Pull Request: https://github.com/Novik/ruTorrent/pull/2704