User:Jack who built the house/Gadget-referenceTooltips.js: Difference between revisions

Content deleted Content added
seems like the settings didn't work anyway
tail CSS via "style" attribute instead of <style> tag?
Line 682:
tooltip.te.removeTimer = setTimeout( function () {
if ( tooltip.isPresent ) {
tooltip.$element
.detach();
.css( 'left', '' );
 
if ( tooltip.tailCss ) {
tooltip.tailCss.disabled = true;
}
 
if ( activatedByClick ) {
Line 769 ⟶ 767:
} );
if ( tooltipTailLeft ) {
this.$element.css( 'left', ( tooltipTailLeft + 12 ) + 'px; }' );
this.tailCss = mw.util.addCSS(
'#' + $.escapeSelector( tooltip.id ) + ' .rt-tooltipTail { left: ' +
( tooltipTailLeft + 12 ) + 'px; }'
);
}
Line 786 ⟶ 782:
if ( tooltipTailLeft ) {
// 12 is the tail element width/height
this.$element.css( 'left', tooltipTailLeft + 'px; }' );
this.tailCss = mw.util.addCSS(
'#' + $.escapeSelector( tooltip.id ) + ' .rt-tooltipTail { left: ' +
tooltipTailLeft + 'px; }'
);
}
}