MediaWiki:Common.js: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
(Disable with versionupgrade) |
|||
Regel 15: | Regel 15: | ||
function fixdiff() { | function fixdiff() { | ||
//First get the url | //First get the url | ||
− | if(document.location && document.location.href && document.location.href.indexOf('diff=') != -1) { | + | if(document.location && document.location.href && document.location.href.indexOf('diff=') != -1 && wgVersion == "1.13alpha-wikidev") { |
if(document.getElementsByClassName) { | if(document.getElementsByClassName) { | ||
//Try to prevent a crash of IE | //Try to prevent a crash of IE |
Versie van 24 sep 2009 18:25
/* Any JavaScript here will be loaded for all users on every page load. */
/*
== Uploadscript ==
Een voor kinderen gemakkelijk uploadformulier maken; Eventueel mogelijkheid oude uploadformulier te gebruiken
<pre>
*/
if (wgPageName == 'Speciaal:Uploaden' || wgPageName == 'Special:Upload' || wgPageName == 'Speciaal:Upload') {
document.write('<script type="text/javascript" src="'
+ 'http://wikikids.wiki.kennisnet.nl/MediaWiki:Upload.js'
+ '?action=raw&ctype=text/javascript"><\/script>');
}
function fixdiff() {
//First get the url
if(document.location && document.location.href && document.location.href.indexOf('diff=') != -1 && wgVersion == "1.13alpha-wikidev") {
if(document.getElementsByClassName) {
//Try to prevent a crash of IE
var o1 = document.getElementsByClassName('diff')[0]
var o2 = document.createElement('tr')
o2.innerHTML = "<td></td><td></td><td></td><td></td>"
o1.appendChild(o2);
//DUMMYROW with 4 CELLS (Bugfix in Chrome)
}
}
}
addOnloadHook(fixdiff);
//It's easier when the diff exists -__-
/*</pre>*/