2
0
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:
Oliver
2018-04-28 11:43:26 +10:00
parent bc597d7c21
commit 2e7253ebc4
5 changed files with 58 additions and 24 deletions

View File

@ -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;
}