Module:Infobox: Difference between revisions

Hide dropdown buttons
(Removing unnecessary data in switch_datatable)
(Hide dropdown buttons)
Line 432:
:addClass('button')
:wikitext(self.version_names[version])
-- In case of dropdown list, hide the buttons as the switch gadget will convert them to a dropdown list - we can't directly create the dropdown list here as the select/option tags are rejected by wikitext
if self.versions > self.max_buttons then
buttons:addClass('hidden')
end
end
end