Refactors NtopngUtils into NtopUtils

This commit is contained in:
Simone Mainardi 2020-08-18 15:10:04 +02:00
parent e61f9ffe68
commit 1ae2b2d932
59 changed files with 414 additions and 414 deletions

View file

@ -414,7 +414,7 @@ print [[
/* Remove duplicate hosts */
$.each(hosts_list.val().split("\n"), function(i, host) {
host = NtopngUtils.cleanCustomHostUrl(host);
host = NtopUtils.cleanCustomHostUrl(host);
if(($.inArray(host, unique_hosts) === -1) && host)
unique_hosts.push(host);
@ -437,7 +437,7 @@ print [[
return;
}
NtopngUtils.paramsToForm('<form method="post"></form>', params).appendTo('body').submit();
NtopUtils.paramsToForm('<form method="post"></form>', params).appendTo('body').submit();
}
function addApplication() {
@ -457,7 +457,7 @@ print [[
params.action = "delete";
params.csrf = "]] print(ntop.getRandomCSRFValue()) print[[";
NtopngUtils.paramsToForm('<form method="post"></form>', params).appendTo('body').submit();
NtopUtils.paramsToForm('<form method="post"></form>', params).appendTo('body').submit();
}
function loadApplications(app) {