mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°1718 Make attribute image zoomable
This commit is contained in:
@@ -328,6 +328,16 @@ EOF
|
||||
EOF
|
||||
);
|
||||
|
||||
// Make image attributes zoomable
|
||||
$this->add_ready_script(
|
||||
<<<EOF
|
||||
$('.view-image img').each(function(){
|
||||
$(this).attr('href', $(this).attr('src'))
|
||||
})
|
||||
.magnificPopup({type: 'image', closeOnContentClick: true });
|
||||
EOF
|
||||
);
|
||||
|
||||
$this->add_init_script(
|
||||
<<< EOF
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user