You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the ResourceIndex page, if a Suspend or Resume button is clicked, this leads to a form POST and the page is refreshed to show the new state. This is fine on factories with few resources, but if the number of resources becomes large, the refresh resets the scroll position, which can be annoying if the user wants to suspend/resume several resources of the same type that are not in the first screen of the page.
We could have a JavaScript handler that submits the form and does an XMLHttpRequest to refresh the table row instead of the entire page. Keep the normal form submission around for APE and as a fallback in case JavaScript is disabled or not working, but suppress the browser from refreshing the page in the JavaScript handler.
The text was updated successfully, but these errors were encountered:
On the ResourceIndex page, if a Suspend or Resume button is clicked, this leads to a form POST and the page is refreshed to show the new state. This is fine on factories with few resources, but if the number of resources becomes large, the refresh resets the scroll position, which can be annoying if the user wants to suspend/resume several resources of the same type that are not in the first screen of the page.
We could have a JavaScript handler that submits the form and does an XMLHttpRequest to refresh the table row instead of the entire page. Keep the normal form submission around for APE and as a fallback in case JavaScript is disabled or not working, but suppress the browser from refreshing the page in the JavaScript handler.
The text was updated successfully, but these errors were encountered: