mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
categories inside scripts list (#3302)
* categories inside scripts list * tag i for icons
This commit is contained in:
parent
e15fcf721c
commit
ca28c4c825
6 changed files with 24 additions and 11 deletions
|
|
@ -1,3 +1,5 @@
|
|||
const INDEX_SEARCH_COLUMN = 3;
|
||||
|
||||
$.fn.dataTable.ext.buttons.filterScripts = {
|
||||
className: "filter-scripts-button",
|
||||
init: function (dt, node, config) {
|
||||
|
|
@ -49,12 +51,12 @@ $.fn.dataTable.ext.buttons.filterScripts = {
|
|||
}
|
||||
else if (button_id == "enabled-scripts") {
|
||||
// draw all enabled scripts
|
||||
dt.columns(2).search("true").draw();
|
||||
dt.columns(INDEX_SEARCH_COLUMN).search("true").draw();
|
||||
window.history.replaceState(undefined, undefined, "#enabled");
|
||||
}
|
||||
else if (button_id == "disabled-scripts") {
|
||||
// draw all disabled scripts
|
||||
dt.columns(2).search("false").draw();
|
||||
dt.columns(INDEX_SEARCH_COLUMN).search("false").draw();
|
||||
window.history.replaceState(undefined, undefined, "#disabled");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue