Module:Clickable button 2: Difference between revisions

fix bug producing green buttons with blue borders after merging of mw-ui-constructive and mw-ui-progressive in phab:T110555
(don't check if we are currently on the args[1] page if we are using a URL link, as args[1] will only be a display value)
(fix bug producing green buttons with blue borders after merging of mw-ui-constructive and mw-ui-progressive in phab:T110555)
Line 84:
if class == 'ui-button-blue'
or class == 'mw-ui-progressive'
or class == 'mw-ui-constructive'
then
data.backgroundColor = '#2962CB'
elseif class == 'ui-button-green' then
or class == 'mw-ui-constructive'
then
data.backgroundColor = '#008B6D'
elseif class == 'ui-button-red' or class == 'mw-ui-destructive' then
or class == 'mw-ui-destructive'
then
data.backgroundColor = '#A6170F'
else