/**
 * Created by User on 6/17/2017.
 */
var hugeitModalPhotoGallery = {
    show: function (elementId, args) {
        var el = jQuery('#' + elementId);
        console.log(el);
        if (el.length) {
            el.css('display', 'flex');
        }
    },

    hide: function (elementId) {
        var el = jQuery('#' + elementId);
        el.css('display', 'none');
    }
};

jQuery(document).ready(function () {
    jQuery('body').on('click', '.-hugeit-modal-close', function () {
        hugeitModalPhotoGallery.hide(jQuery(this).closest('.-hugeit-modal').attr('id'));
    });
});