/**
 * info bubbles
 */
import IGDATAPOOLFE from '@dp/ig_datapool_fe.js';

const infobubblePlugin = {
    initFields(form) {
        this.init(form);
    },
    init(form) {
	let $form = $(form);
	this.form = $form;
	$('.dp-infobubble-button, .dp-infobubble-div', $form).tooltipster({
	    content : $(this).data('infobubble'),
	    position : 'bottom-left',
	    iconTouch : true
	});
    }
};
IGDATAPOOLFE.addPlugin('infobubble', infobubblePlugin);
export default infobubblePlugin;
