thanks for the "tip" tsarma. :lol:
I did it by creating a unique tip instance with it's own parameters before the standard one. I was trying to remove/detach or undo the tips, but without that variable name (which isn't used in the init), you can't do anything. The first one, hides the tip and the second one moves the offset to a different position.
Code:
Backend.addInteractiveHelp = function()
{
new Tips.Contao('p.tl_tip', {
offset: {x:9, y:21},
text: function(e) {
return e.get('html');
}
});
$$('#tl_navigation li.tl_level_1_group > a').each(function(el) {
new Tips.Contao(el, {
onShow: function(tip,el) { tip.hide();}
});
});
$$('#tl_navigation ul.tl_level_2 li a').each(function(el) {
new Tips.Contao(el, {
offset: {x:0, y:80}
});
});
// Links and input elements
['a[title]', 'input[title]'].each(function(el) {
new Tips.Contao($$(el).filter(function(i) {
return i.title != '';
}), {
offset: {x:0, y:26}
});
});
// Images
$$('img[title]').filter(function(i) {
return i.title != '';
}).each(function(el) {
new Tips.Contao(el, {
offset: {x:0, y:((el.get('class') == 'gimage') ? 60 : 30)}
});
});
}
Bookmarks