$(document).ready(function(){
    $('.image-display').click(function(){
        messages.modal_pop({content:'<img src="'+$(this).attr('src')+'" />'});
    });
});

$(document).ready(function () {
    var image = $('.image-display');
    image.click(function () {
        messages.modal_pop({content: '<img src="' + $(this).attr('src') + '" />'});
    });
    image.error(
        function () {
            $(this).unbind("click").css("cursor", "default")
        });
});

Fix for STORE-1324: Update JS to prevent onclick action when the image link is broken
Fix for STORE-1324: Update JS to prevent onclick action when the image link is broken
