Merge "On save, if there was no 'last modified' text at the bottom of the page, add it"

This commit is contained in:
jenkins-bot 2014-11-17 17:48:50 +00:00 committed by Gerrit Code Review
commit 7efa601837

View file

@ -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,