Content added Content deleted
(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: | Line 84: | ||
if class == 'ui-button-blue' |
if class == 'ui-button-blue' |
||
or class == 'mw-ui-progressive' |
or class == 'mw-ui-progressive' |
||
⚫ | |||
then |
then |
||
data.backgroundColor = '#2962CB' |
data.backgroundColor = '#2962CB' |
||
elseif class == 'ui-button-green' |
elseif class == 'ui-button-green' then |
||
⚫ | |||
then |
|||
data.backgroundColor = '#008B6D' |
data.backgroundColor = '#008B6D' |
||
elseif class == 'ui-button-red' |
elseif class == 'ui-button-red' or class == 'mw-ui-destructive' then |
||
or class == 'mw-ui-destructive' |
|||
then |
|||
data.backgroundColor = '#A6170F' |
data.backgroundColor = '#A6170F' |
||
else |
else |