mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
On save, if there was no 'last modified' text at the bottom of the page, add it
Just hope that wgMaxCredits is 0. Change-Id: Idf4a7cceb0650eaec4442244066d875a3ff38e06
This commit is contained in:
parent
ff3d76f488
commit
ac6f6caeac
|
@ -1539,6 +1539,14 @@ ve.init.mw.ViewPageTarget.prototype.replacePageContent = function (
|
|||
var $content = $( $.parseHTML( html ) ), $editableContent;
|
||||
|
||||
if ( lastModified ) {
|
||||
// If we were not viewing the most recent revision before (a requirement
|
||||
// for lastmod to have been added by MediaWiki), we will be now.
|
||||
if ( !$( '#footer-info-lastmod' ).length ) {
|
||||
$( '#footer-info' ).prepend(
|
||||
$( '<li>' ).attr( 'id', 'footer-info-lastmod' )
|
||||
);
|
||||
}
|
||||
|
||||
$( '#footer-info-lastmod' ).text( ' ' + mw.msg(
|
||||
'lastmodifiedat',
|
||||
lastModified.date,
|
||||
|
|
Loading…
Reference in a new issue