mirror of
https://bitbucket.org/vertlach/iusethis.git
synced 2024-06-17 07:30:50 +03:00
English version hooray
This commit is contained in:
parent
da278d02c2
commit
111fd984ce
11
IUT.js
11
IUT.js
|
@ -16,6 +16,13 @@ var IUT = function IUT() {
|
|||
this.id = 0;
|
||||
this.last_id = 0;
|
||||
this.imagePath = mw.config.get( 'wgExtensionAssetsPath' ) + '/VoteNY/images/';
|
||||
$.when( mw.loader.using( [ 'mediawiki.api.messages', 'mediawiki.jqueryMsg' ] ), $.ready ).then( function() {
|
||||
return new mw.Api().loadMessagesIfMissing( [
|
||||
'iusethis-unvote-link',
|
||||
'iusethis-link',
|
||||
'people-count'
|
||||
] );
|
||||
})
|
||||
|
||||
/**
|
||||
* Called when voting through the green square voting box
|
||||
|
@ -30,7 +37,7 @@ var IUT = function IUT() {
|
|||
what: 'vote',
|
||||
pageId: PageID
|
||||
} ).done( function( data ) {
|
||||
$( '#PollVotes' ).html( data.iusethis.result );
|
||||
$( '#PollVotes' ).html( data.iusethis.result + ' ' + mw.msg('people-count') );
|
||||
$( '#Answer' ).html(
|
||||
' <a href="javascript:void(0);" class="vote-unvote-link">' +
|
||||
mw.msg( 'iusethis-unvote-link' ) + '</a>'
|
||||
|
@ -50,7 +57,7 @@ var IUT = function IUT() {
|
|||
what: 'delete',
|
||||
pageId: PageID
|
||||
} ).done( function( data ) {
|
||||
$( '#PollVotes' ).html( data.iusethis.result );
|
||||
$( '#PollVotes' ).html( data.iusethis.result + ' ' + mw.msg('people-count') );
|
||||
$( '#Answer' ).html(
|
||||
' <a href="javascript:void(0);" class="vote-vote-link">' +
|
||||
mw.msg( 'iusethis-link' ) + '</a>'
|
||||
|
|
Loading…
Reference in a new issue