Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how does update.htm actually make updates and how are table+form change events being handled for reset vs done #955

Open
imthenachoman opened this issue Sep 21, 2021 · 2 comments

Comments

@imthenachoman
Copy link

I wasn't sure where to ask this. I'm not really working on a plug-in so I didn't think the forums were the right place. Happy to post there instead if I need to.

I am working on a change to add support for per user chroot jails to Unraid's stock FTP powered by vsftpd (#953). I have the backend logic figured out. Now I am trying to update the web UI to make it easier to select the chroot jail for each user.

I am able to figure out most of it by looking through the existing code. I am stuck on two things:

  1. In the UI, when you change a select drop down, the "Done" button changes to "Reset". Where is the event logic for that? I can't find it. I can find the logic that changes it back to "Done" but not to "Reset" from "Done".
  2. How exactly does update.htm work? I can see that some updates are handled by asynchronous post calls to update.htm. But looking through that file I don't get how the back-end code is actually called? My back-end code just writes some string to a configuration file. I'd like to use update.htm to do that if possible but I can't figure it out.

image

@Leseratte10
Copy link
Contributor

I'd be interested to know that as well, and was unable to figure it out. I did figure out update.php that writes a config file, but some pages are using update.htm instead.

@imthenachoman
Copy link
Author

I will be honest, I had figured it out but I forgot now. My pull request is https://github.com/unraid/webgui/pull/958/commits in case it has the information you're looking for.

I don't use unRAID anymore so I can't even check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants