7
edits
No edit summary |
|||
Line 53: | Line 53: | ||
/*<nowiki>*/ | /*<nowiki>*/ | ||
/** additional monobook scripts **/ | /** additional monobook scripts **/ | ||
$(document).ready(function() { displayTimer(); }); | |||
/**** function displayTimer.js | /**** function displayTimer.js | ||
Line 67: | Line 67: | ||
var timerLink = document.createElement( 'a' ); | var timerLink = document.createElement( 'a' ); | ||
var timerObj = document.createElement( 'li' ); | var timerObj = document.createElement( 'li' ); | ||
timerLink.href = '/wiki/' + wgPageName + '?action=purge'; | timerLink.href = '/wiki/' + mw.config.get("wgPageName") + '?action=purge'; | ||
timerLink.title = 'Purge the server cache and update the contents of this page.' | timerLink.title = 'Purge the server cache and update the contents of this page.' | ||
timerObj.id = 'pt-timer'; | timerObj.id = 'pt-timer'; |