If custom tab is added before watchlist tab, on page resize it's ignored and stays in, only original tabs scroll/collapse to the menu.
Version: unspecified
Severity: minor
If custom tab is added before watchlist tab, on page resize it's ignored and stays in, only original tabs scroll/collapse to the menu.
Version: unspecified
Severity: minor
wiki.nihiltres wrote:
Adding class="collapsible" to the custom tab doesn't seem to help. The problem seems to be something involving the $settings variable, but I don't understand the code well enough to analyze the problem further.
TypeError: 'null' is not an object (evaluating '$settings.expandedContainer')
load.php:407
mhershberger wrote:
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
This certainly works now, even if it didn't work before.
Tested using this JS:
mw.util.addPortletLink('p-views', '#', 'Test tab', 'ca-test', null, null, 'ca-history')
$('#ca-test').addClass('collapsible')
The resulting tab collapses just like it should.