implementation start of rspam/antispam feature
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
3
templates/Froxlor/assets/js/bootstrap.js
vendored
3
templates/Froxlor/assets/js/bootstrap.js
vendored
@@ -14,6 +14,9 @@ window.bootstrap = bootstrap;
|
||||
import Chart from 'chart.js/auto';
|
||||
window.Chart = Chart;
|
||||
|
||||
// set a default theme
|
||||
window.$theme = 'Froxlor';
|
||||
|
||||
// Axios
|
||||
import axios from 'axios';
|
||||
window.axios = axios;
|
||||
|
||||
12
templates/Froxlor/assets/js/jquery/global.js
vendored
12
templates/Froxlor/assets/js/jquery/global.js
vendored
@@ -8,13 +8,15 @@ export default function () {
|
||||
history.back(1);
|
||||
})
|
||||
|
||||
$('#copySysInfo').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
navigator.clipboard.writeText($('#ccSysInfo').text().trim());
|
||||
})
|
||||
|
||||
$('[data-bs-toggle="popover"]').each(function () {
|
||||
new bootstrap.Popover($(this));
|
||||
})
|
||||
|
||||
$('.copyClipboard').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
const source_element = $(this).data('clipboard-source').text();
|
||||
navigator.clipboard.writeText($('#' + source_element).text().trim());
|
||||
})
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user