Jump to content

User talk:Ioeth/friendlytabs.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Amalthea (talk | contribs) at 12:22, 4 July 2009 (Incompatible with new vector skin: Fixed, thanks). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Incompatible with new vector skin

This script breaks vector visually, e.g. the edit and view source tabs move up a bit. The reason is that the innerHTML of document.getElementById( FriendlyConfig.idsToRename[i].id ).firstChild.innerHTML in vector is a span with the caption in it, not just the caption text. This can be fixed in several ways, e.g. you could use a loop to go down until there are no children, and then modify the last childs innerHTML to the new caption. --  Nx/talk  10:05, 4 July 2009 (UTC)[reply]

This works with both monbook and vector, under Firefox 3.5 and opera 10. I couldn't test Internet Explorer as I'm on Linux. --  Nx/talk  11:11, 4 July 2009 (UTC)[reply]
Fixed, thanks. And yes, it works in IE, IE 8 at least. But it's probably the only part of Friendly to work in IE anyway, so ... :) Amalthea 12:22, 4 July 2009 (UTC)[reply]