Using jsTree, when I right click any of the nodes, I need to have in the menu an option to change the node type. I built the menu part, but I cannot figure out how to actually update the type.
In the database, I have is_homepage and type. If is_homepage = 1, then type = drive; if the is_homepage = 0, then type = file. So, if I have a drive, I want it to be able to switch to file; if I have a file, I want it to switch to drive.
I've included how I have the menu now. The image is with the type=file. I don't mind/care that both options are showing for converting the types.
Please have a sample ready if possible.