mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Refactors NtopngUtils into NtopUtils
This commit is contained in:
parent
e61f9ffe68
commit
1ae2b2d932
59 changed files with 414 additions and 414 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue