Hi Karim,
you have to trigger some event and reinit manually... something like this:
function initTooltips (selector) {
var selctor = selector || '*[data-tooltip]';
var mtt = new mBox.Tooltip({
setContent: 'data-tooltip',
attach: $$(selector)
})
return mtt;
};
window.addEvents({
domready: function() {
initTooltips()
}
})
//later....
/*
element.addEvent('click', initTooltips)
*/
--
Andrea
On Tue, Mar 25, 2014 at 11:58 AM, Karim <[email protected]> wrote:
> Hello guys.
> How to reinit DOM after Request?
> I use *mBox <http://mootools.net/forge/p/mbox>* library.
>
>> window.addEvents({
>>
>> domready: function() {
>>
>> new mBox.Tooltip({
>>
>> setContent: 'data-tooltip',
>>
>> attach: $$('*[data-tooltip]')
>>
>> })
>>
>> },
>>
>> })
>>
>> After Request I'll add new elements in page and if I add an attribute
>> *data-tooltip
> *to these elements the they will no work.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "MooTools Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
---
You received this message because you are subscribed to the Google Groups
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.