Is it possible to have the ability to launch the edit modal from a wiki page using the same syntax used for opening an Add Item modal from a wiki? Passing the item ID in the json object?
Is it possible to have the ability to launch the edit modal from a wiki page using the same syntax used for opening an Add Item modal from a wiki? Passing the item ID in the json object?
Personally I prefer to not use their javascript to force the model up anymore as there is too much risk with things changing on their end. Instead I just use window.open() to open up the isheet page using a URL param to filter the item to just the 1 item (based on id), and then I use jquery on the modal window to manually click the edit button so the edit modal opens up. This should work mainly, however I then went a bit fancier and used jquery to monitor the HTTP requests and when it detected certain ones with a status of 200, I call a callback function to simulate the "oncreate" or "onedit" or "ondelete" events...
Personally I prefer to not use their javascript to force the model up anymore as there is too much risk with things changing on their end. Instead I just use window.open() to open up the isheet page using a URL param to filter the item to just the 1 item (based on id), and then I use jquery on the modal window to manually click the edit button so the edit modal opens up. This should work mainly, however I then went a bit fancier and used jquery to monitor the HTTP requests and when it detected certain ones with a status of 200, I call a callback function to simulate the "oncreate" or "onedit" or "ondelete" events...