mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
Go back to the alerts page when applying the configuration
This commit is contained in:
parent
3d2de3a295
commit
b3f862b53d
2 changed files with 4 additions and 2 deletions
|
|
@ -13,8 +13,9 @@ String.prototype.titleCase = function () {
|
|||
|
||||
const reloadPageAfterPOST = () => {
|
||||
if(location.href.indexOf("user_script=") > 0) {
|
||||
/* Remove the "user_script" _GET parameter */
|
||||
location.href = page_url + location.hash;
|
||||
/* Go back to the alerts page */
|
||||
//location.href = page_url + location.hash;
|
||||
window.history.back();
|
||||
} else {
|
||||
/* The URL is still the same as before, need to force a reload */
|
||||
location.reload();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue