Robmoen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/227495
Change subject: Modify cache conditions for replacing the last-modified-bar
......................................................................
Modify cache conditions for replacing the last-modified-bar
Under normal page view, the .last-modified-bar element should also
have the classes, .pre-content and .post-content
In certain cached page situations the child element
causing the padding to be applied inside the .last-modified-bar
Bug: T107104
Change-Id: Iba6e4160d23282ecd309ed64cfa8fbb1da012b6c
---
M resources/mobile.head/init.js
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/95/227495/1
diff --git a/resources/mobile.head/init.js b/resources/mobile.head/init.js
index d0df854..a4fb107 100644
--- a/resources/mobile.head/init.js
+++ b/resources/mobile.head/init.js
@@ -57,7 +57,11 @@
] );
// FIXME: remove the if part when the cache clears.
- if ( isPageCached || $lastModifiedLink.hasClass(
'truncated-text' ) ) {
+ if (
+ isPageCached ||
+ $lastModifiedLink.hasClass( 'truncated-text' )
||
+ $lastModified.hasClass( 'pre-content' )
+ ) {
$lastModifiedBar.replaceWith(
$( '<div class="last-modified-bar">' )
.html(
--
To view, visit https://gerrit.wikimedia.org/r/227495
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba6e4160d23282ecd309ed64cfa8fbb1da012b6c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Robmoen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits