mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-13 17:46:20 +02:00
18 lines
410 B
JavaScript
18 lines
410 B
JavaScript
if (typeof $.monstra == 'undefined') $.monstra = {};
|
|
|
|
$.monstra.filesmanager = {
|
|
|
|
init: function() {
|
|
this.showImage();
|
|
},
|
|
|
|
showImage: function() {
|
|
$('.image').find('a').on('click', function() {
|
|
$('#previewLightbox').lightbox('show').find('img').attr('src', $(this).attr('rel'));
|
|
});
|
|
}
|
|
};
|
|
|
|
$(document).ready(function(){
|
|
$.monstra.filesmanager.init();
|
|
}); |