MediaWiki:Common.js: diferència entre les revisions

Mpuj (discussió | contribucions)
Correcció de codis
Mpuj (discussió | contribucions)
Correcció de codis
Línia 624: Línia 624:
function addDate() {
function addDate() {
     var UTCDate = (new Date()).toLocaleDateString() + ' ' + (new Date()).toLocaleTimeString();
     var UTCDate = (new Date()).toLocaleDateString() + ' ' + (new Date()).toLocaleTimeString();
     $('#showdate').empty().append('<span style="font-weight: bold; text-transform: none;"><a title="Purge the server cache and update the contents of this page." href="' + wgArticlePath.replace('$1', wgPageName.replace(/ /g, '_')) + '?action=purge">' + UTCDate.substring(5) + '</a></span>');
     $('#showdate').empty().append('<span style="font-weight: bold; text-transform: none;"><a title="Purge the server cache and update the contents of this page." href="' + wgArticlePath.replace('$1', wgPageName.replace(/ /g, '_')) + '?action=purge">' + UTCDate + '</a></span>');
     window.clearTimeout(refreshDate);
     window.clearTimeout(refreshDate);
     refreshDate = window.setTimeout(addDate, 1000);
     refreshDate = window.setTimeout(addDate, 1000);