Fixes to hide zero items in the menubar

This commit is contained in:
Simone Mainardi 2020-03-18 10:37:38 +01:00
parent 4b8c82b924
commit a024e7d73f
2 changed files with 14 additions and 19 deletions

View file

@ -1070,9 +1070,7 @@ print([[
system_interface: flag,
csrf: "]].. ntop.getRandomCSRFValue() ..[["
}, function(data) {
if (data.success && !$form) location.href = '/';
debugger;
if (data.success && $form) $form.submit();
if (!data.success) {
console.error("An error has occurred!");