mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-31 08:14:41 +02:00
Use popovers to show a bigger picture of the part image.
This commit is contained in:
parent
743423432e
commit
6cb34edfe9
2 changed files with 9 additions and 8 deletions
|
@ -361,8 +361,15 @@ $(document).on("ajaxUI:reload ajaxUI:start", function () {
|
|||
* Load the higher resolution version of hover pictures.
|
||||
*/
|
||||
$(document).on("ajaxUI:reload ajaxUI:start ajaxUI:dt_loaded", function () {
|
||||
$(".hoverpic[data-thumbnail]").mouseenter(function() {
|
||||
$(this).attr('src', $(this).data('thumbnail'));
|
||||
|
||||
$('.hoverpic[data-thumbnail]').popover({
|
||||
html: true,
|
||||
trigger: 'hover',
|
||||
placement: 'right',
|
||||
container: 'body',
|
||||
content: function () {
|
||||
return '<img class="img-fluid" src="' + $(this).data('thumbnail') + '" />';
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue