MediaWiki:Common.js: Unterschied zwischen den Versionen
Thilo (Diskussion | Beiträge) |
Thilo (Diskussion | Beiträge) |
||
| Zeile 3: | Zeile 3: | ||
// This import is used for TU Berlin App-Drawer widget | // This import is used for TU Berlin App-Drawer widget | ||
importScriptURI('https://isis.tu-berlin.de/tu-speeddial/apps.js'); | importScriptURI('https://isis.tu-berlin.de/tu-speeddial/apps.js'); | ||
| − | + | function blah() { | |
$("#app-field img").first().attr("src", "http://freitagsrunde.org/~kaufi/tu-speeddial.png"); | $("#app-field img").first().attr("src", "http://freitagsrunde.org/~kaufi/tu-speeddial.png"); | ||
| − | }, | + | if ( $("#app-field img").size() !== 0 && |
| + | $("#app-field img").first().attr("src") !== "http://freitagsrunde.org/~kaufi/tu-speeddial.png") { | ||
| + | setTimeout(blah, 10); | ||
| + | } | ||
| + | } | ||
| + | setTimeout(blah, 10); | ||
Version vom 11. Januar 2015, 00:45 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
// This import is used for TU Berlin App-Drawer widget
importScriptURI('https://isis.tu-berlin.de/tu-speeddial/apps.js');
function blah() {
$("#app-field img").first().attr("src", "http://freitagsrunde.org/~kaufi/tu-speeddial.png");
if ( $("#app-field img").size() !== 0 &&
$("#app-field img").first().attr("src") !== "http://freitagsrunde.org/~kaufi/tu-speeddial.png") {
setTimeout(blah, 10);
}
}
setTimeout(blah, 10);