mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
reworked script editor page
This commit is contained in:
parent
3f1fabc73f
commit
1e5376da95
8 changed files with 166 additions and 110 deletions
|
|
@ -1741,4 +1741,11 @@ $(document).ready(function() {
|
|||
return [enabled_count, disabled_count];
|
||||
}
|
||||
|
||||
$(`.filter-scripts-button`).click(function() {
|
||||
$(`#scripts-config a[href^='/lua/code_viewer.lua']`).each(function() {
|
||||
const encoded = encodeURIComponent(`${location.pathname}${location.search}${location.hash}`);
|
||||
$(this).attr('href', `${$(this).attr('href')}&referal_url=${encoded}`);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue