mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
26 lines
566 B
JavaScript
26 lines
566 B
JavaScript
function copyCron(id) {
|
|
var content = $('#' + id).text();
|
|
|
|
navigator.clipboard.writeText(content).then(function () {});
|
|
|
|
$('#' + id).addClass('flash-copy').delay('1000').queue(function () {
|
|
$('#' + id).removeClass('flash-copy').dequeue();
|
|
});
|
|
}
|
|
|
|
$('.crontable').DataTable({
|
|
"pageLength": 25,
|
|
"language": {
|
|
url: getDataTablesLanguageUrl(),
|
|
},
|
|
responsive: true,
|
|
ordering: true,
|
|
"scrollY": "600px",
|
|
"scrollCollapse": true,
|
|
"paging": false,
|
|
"scrollX": true,
|
|
"autoWidth": false,
|
|
"language": {
|
|
url: getDataTablesLanguageUrl(),
|
|
}
|
|
}); |