Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Clickable button 2: Difference between revisions

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'
or class == 'mw-ui-constructive'
then
then
data.backgroundColor = '#2962CB'
data.backgroundColor = '#2962CB'
elseif class == 'ui-button-green'
elseif class == 'ui-button-green' then
or class == 'mw-ui-constructive'
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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.