Contenu supprimé Contenu ajouté
Bawolff (discuter | contributions)
→‎template:Ticker : nouvelle section
Bawolff (discuter | contributions)
→‎template:Ticker : cm on the tab box thing
Ligne 91 :
 
Hope that helps. Please don't hesitate to ask me if you have any questions, or if there is anything i could do to help. [[Utilisateur:Bawolff|Bawolff]] 6 août 2009 à 00:17 (UTC)
:p.s. When i was poking around, I noticed the tab box thing wasn't working. On the english wikinews we modified it to use hasClass() to be more consistant with the other scripts on en. You might want to modify it back to the way it was before, or add:
<pre>
// hasClass()
// Description: Uses regular expressions and caching for better performance.
// Stolen from en wikipedia where it was maintained by: w:User:Mike Dillon, w:User:R. Koot, w:User:SG
var hasClass = (function () {
var reCache = {};
return function (element, className) {
return (reCache[className] ? reCache[className] : (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className);
};
})();
</pre>
Somewhere in [[mediawiki:Common.js]]. Cheers. [[Utilisateur:Bawolff|Bawolff]] 6 août 2009 à 20:37 (UTC)