N°1718 Make attribute image zoomable

This commit is contained in:
Denis Flaven
2018-11-22 16:06:23 +01:00
parent c4c0b0f630
commit c42333d085

View File

@@ -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