mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 09:44:41 +02:00
Show (iconized) links to attachments on parts table.
This commit is contained in:
parent
3e4f5a1391
commit
05d6b0aa93
5 changed files with 114 additions and 5 deletions
|
@ -679,6 +679,16 @@ table.dataTable {
|
|||
}
|
||||
|
||||
|
||||
/*******************************
|
||||
Parts datatable styling
|
||||
******************************/
|
||||
.attach-table-icon {
|
||||
margin-right: 0.7em;
|
||||
color: var(--gray);
|
||||
}
|
||||
.attach-table-icon:hover {
|
||||
color: var(--gray-dark);
|
||||
}
|
||||
|
||||
/*********************************
|
||||
Workarounds
|
||||
|
|
|
@ -526,14 +526,13 @@ class AjaxUI {
|
|||
$(document).trigger('ajaxUI:dt_loaded');
|
||||
|
||||
//Attach event listener to update links after new page selection:
|
||||
$('#dt').on('draw.dt', function() {
|
||||
$('#dt').on('draw.dt column-visibility.dt', function() {
|
||||
ajaxUI.registerLinks();
|
||||
$(document).trigger('ajaxUI:dt_loaded');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
console.debug('Datatables inited.');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ $(document).on("ajaxUI:reload", function () {
|
|||
});
|
||||
|
||||
//Use bootstrap tooltips for the most tooltips
|
||||
$(document).on("ajaxUI:start ajaxUI:reload", function () {
|
||||
$(document).on("ajaxUI:start ajaxUI:reload ajaxUI:dt_loaded", function () {
|
||||
$(".tooltip").remove();
|
||||
$('a[title], button[title], span[title], h6[title], i.fas[title]')
|
||||
//@ts-ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue