mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-24 06:53:46 +00:00
Use mw-ui-progressive instead of constructive
Bug: T146923 Change-Id: I6e18cc6151f315badb938a358c2896149a6ced8f
This commit is contained in:
parent
d9f5feece4
commit
f0e1ec158b
|
@ -49,11 +49,11 @@
|
||||||
if ( name !== mw.config.get( 'wgUserName' ) ) {
|
if ( name !== mw.config.get( 'wgUserName' ) ) {
|
||||||
// See if user has already been thanked for this edit
|
// See if user has already been thanked for this edit
|
||||||
if ( mw.config.get( 'wgThanksAlreadySent' ) ) {
|
if ( mw.config.get( 'wgThanksAlreadySent' ) ) {
|
||||||
$thankBtn = $( '<button class="mw-mf-action-button mw-ui-button mw-ui-constructive thanked">' )
|
$thankBtn = $( '<button class="mw-mf-action-button mw-ui-button mw-ui-progressive thanked">' )
|
||||||
.prop( 'disabled', true )
|
.prop( 'disabled', true )
|
||||||
.html( thankImgTag + mw.message( 'thanks-button-thanked', mw.user ).escaped() );
|
.html( thankImgTag + mw.message( 'thanks-button-thanked', mw.user ).escaped() );
|
||||||
} else {
|
} else {
|
||||||
$thankBtn = $( '<button class="mw-mf-action-button mw-ui-button mw-ui-constructive">' )
|
$thankBtn = $( '<button class="mw-mf-action-button mw-ui-button mw-ui-progressive">' )
|
||||||
.html( thankImgTag + mw.message( 'thanks-button-thank', mw.user, gender ).escaped()
|
.html( thankImgTag + mw.message( 'thanks-button-thank', mw.user, gender ).escaped()
|
||||||
)
|
)
|
||||||
.on( 'click', function () {
|
.on( 'click', function () {
|
||||||
|
|
Loading…
Reference in a new issue