This commit is contained in:
David Brazda
2023-11-27 14:52:20 +01:00
parent 595ba83251
commit e9c3849bbc
3 changed files with 17 additions and 16 deletions

View File

@ -57,7 +57,7 @@
<!-- <script src="https://code.jquery.com/jquery-3.5.1.js"></script> -->
<link rel="stylesheet" href="/static/main.css">
<link rel="stylesheet" href="/static/main.css?v=1.01">
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.4.6/mousetrap.min.js"></script> -->
<script src="/static/js/libs/mousetrap.min.js"></script>
@ -853,15 +853,15 @@
<script src="/static/js/utils.js"></script>
<script src="/static/js/instantindicators.js"></script>
<script src="/static/js/archivechart.js"></script>
<script src="/static/js/archivetables.js"></script>
<script src="/static/js/livewebsocket.js"></script>
<script src="/static/js/realtimechart.js"></script>
<script src="/static/js/mytables.js"></script>
<script src="/static/js/testlist.js"></script>
<script src="/static/js/configform.js"></script>
<script src="/static/js/utils.js?v=1.01"></script>
<script src="/static/js/instantindicators.js?v=1.01"></script>
<script src="/static/js/archivechart.js?v=1.01"></script>
<script src="/static/js/archivetables.js?v=1.01"></script>
<script src="/static/js/livewebsocket.js?v=1.01"></script>
<script src="/static/js/realtimechart.js?v=1.01"></script>
<script src="/static/js/mytables.js?v=1.01"></script>
<script src="/static/js/testlist.js?v=1.01"></script>
<script src="/static/js/configform.js?v=1.01"></script>
<!-- <script src="/static/js/dynamicbuttons.js"></script> -->
</body>
</html>

View File

@ -135,7 +135,7 @@ $(document).ready(function () {
var data = archiveRecords.row(this).data();
//var imageUrl = '/media/report_'+data.id+".png"; // Replace with your logic to get image URL
var imageUrl = '/media/basic/'+data.id+'.png'; // Replace with your logic to get image URL
console.log(imageUrl)
//console.log(imageUrl)
display_image(imageUrl)
});
@ -172,7 +172,7 @@ $(document).ready(function () {
function display_batch_report(batch_id) {
//var imageUrl = '/media/report_'+data.id+".png"; // Replace with your logic to get image URL
var imageUrl = '/media/basic/'+batch_id+'.png'; // Replace with your logic to get image URL
console.log(imageUrl)
//console.log(imageUrl)
display_image(imageUrl)
}
@ -987,7 +987,7 @@ var archiveRecords =
targets: 1,
render: function ( data, type, row ) {
if (type === 'display') {
console.log("arch")
//console.log("arch")
var color = getColorForId(data);
return '<div class="tdnowrap" data-bs-toggle="tooltip" data-bs-placement="top" title="'+data+'"><span class="color-tag" style="background-color:' + color + ';"></span>'+data+'</div>';
}
@ -1322,7 +1322,8 @@ function generateStorageKey(batchId) {
}
// Expand/Collapse functionality
$('#archiveTable tbody').on('click', 'tr.group-header', function () {
$('#archiveTable tbody').on('click', 'tr.group-header', function (event) {
event.stopPropagation()
var headerRow = $(this);
var name = headerRow.data('name');
var collapsed = headerRow.hasClass('collapsed');

File diff suppressed because one or more lines are too long