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

Content deleted Content added
m fix
undo
Line 682:
tooltip.te.removeTimer = setTimeout( function () {
if ( tooltip.isPresent ) {
tooltip.$element.detach();
 
.detach()
.cssif ( 'left', ''tooltip.tailCss ); {
tooltip.tailCss.disabled = true;
}
 
if ( activatedByClick ) {
Line 767 ⟶ 769:
} );
if ( tooltipTailLeft ) {
this.tailCss = mw.util.addCSS(
this.$element.css( 'left', ( tooltipTailLeft + 12 ) + 'px' );
'#' + $.escapeSelector( tooltip.id ) + ' .rt-tooltipTail { left: ' +
this.$element.css( 'left', ( tooltipTailLeft + 12 ) + 'px; }' );
);
}
} else {
Line 781 ⟶ 786:
if ( tooltipTailLeft ) {
// 12 is the tail element width/height
this.tailCss = mw.util.addCSS(
this.$element.css( 'left', tooltipTailLeft + 'px' );
'#' + $.escapeSelector( tooltip.id ) + ' .rt-tooltipTail { left: ' +
this.$element.css( 'left', tooltipTailLeft + 'px; }' );
);
}
}