aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFomafix <fomafix@googlemail.com>2019-02-10 21:01:25 +0100
committerKrinkle <krinklemail@gmail.com>2019-02-12 00:06:48 +0000
commit9c5a4773952f2e914eda668b71dedb7c78a9a258 (patch)
tree1fcb95b77c5f6cd532c94574946635cafb3559a7
parentd056d4c273a069d572ceb2160346ee697d7b87de (diff)
downloadmediawikicore-9c5a4773952f2e914eda668b71dedb7c78a9a258.tar.gz
mediawikicore-9c5a4773952f2e914eda668b71dedb7c78a9a258.zip
ChangesList: Remove spaces from <td> in EnhancedChangesListGroup.mustache
The special page RecentChanges can included in wiki content via {{Special:RecentChanges}} In this case the generated content is parsed by a wikitext parser. The wikitext parser converts <td> <span>Foo</span> </td> to the HTML <td><p><span>Foo</span></p></td> But the wikitext <td><span>Foo</span></td> is converted to the HTML <td><span>Foo</span></td> The module 'jquery.makeCollapsible' supports custom collapsible toggle buttons but only when they are a direct child of the <td> element. When the module does not find a custom collapsible toggle button it adds the default button [Expand]. Because of the additional <p> element when including the recent changes the module 'jquery.makeCollapsible' adds a default collapsible toggle button. This change removes the spaces between <td> and <span> to prevent the <p> elements when including the recent changes. Bug: T215737 Change-Id: Ida46956fc7f9ab923c542751ac13411380c02ab0
-rw-r--r--includes/templates/EnhancedChangesListGroup.mustache4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/templates/EnhancedChangesListGroup.mustache b/includes/templates/EnhancedChangesListGroup.mustache
index e41a98bf1ce3..6037d3792d8b 100644
--- a/includes/templates/EnhancedChangesListGroup.mustache
+++ b/includes/templates/EnhancedChangesListGroup.mustache
@@ -10,9 +10,7 @@
<div class="mw-rcfilters-ui-highlights-color-c5" data-color="c5"></div>
</div>
</td>
- <td>
- <span class="mw-collapsible-toggle mw-collapsible-arrow mw-enhancedchanges-arrow mw-enhancedchanges-arrow-space"></span>
- </td>
+ <td><span class="mw-collapsible-toggle mw-collapsible-arrow mw-enhancedchanges-arrow mw-enhancedchanges-arrow-space"></span></td>
<td class="mw-changeslist-line-prefix">{{{ prefix }}}</td>
<td class="mw-enhanced-rc" colspan="2">{{{ collectedRcFlags }}}&#160;{{ timestamp }}&#160;</td>
<td class="mw-changeslist-line-inner">