mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 11:40:58 +00:00
Tweak javascript for category detail pages
This commit is contained in:
@ -54,6 +54,10 @@ function launchDeleteForm(modal, url, options = {}) {
|
||||
if (options.success) {
|
||||
options.success();
|
||||
}
|
||||
// Follow the URL returned by the JSON response
|
||||
else if (options.follow && response.url) {
|
||||
window.location.href = response.url;
|
||||
}
|
||||
else if (options.redirect) {
|
||||
window.location.href = options.redirect;
|
||||
}
|
||||
|
Reference in New Issue
Block a user