(function ($) {
    $(function () {
        $('.mo-tooltipster').tooltipster({
            theme: 'tooltipster-borderless'
        });

        $('.mo-ellipsis-tooltipster').tooltipster({
            functionInit: function (instance, helper) {
                var content = $(helper.origin).parent().find('.mo-popover-content');
                instance.content(content);
            },
            theme: 'tooltipster-light',
            trigger: 'click',
            side: 'right',
            contentAsHTML: true,
            interactive: true
        });
    });

})(jQuery);