Hi,
This gadget breaks the ContentTranslation extension. The #p-cactions element is not available on Special:ContentTranslation, so the JavaScript crashes.
Can you please update it to something like this? -
$( function() {
var cactions, tabs, listitems, listitemsLength, i, content;
cactions = document.getElementById('p-cactions');
if ( cactions === null ) {
return;
}
tabs = cactions.cloneNode(true);
listitems = tabs.getElementsByTagName('li');
listitemsLength = listitems.length;
tabs.id = 'mytabs';
for ( i = 0; i < listitemsLength; i++ ) {
if ( listitems.id ) {
listitems.id = 'mytabs-' + listitems.id;
}
}
content = document.getElementById("content"); // Find the content div
content.parentNode.insertBefore(tabs, content.nextSibling); // Place tab list right after content div
});
Thank you! --Amir E. Aharoni (discusión) 22:29 18 jul 2015 (UTC)