mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-15 03:04:14 +00:00
localizing submit message text in javascript using resource loader
bug 49162 Change-Id: I528344369341d8c43f196b5d52fd47ae6012521e
This commit is contained in:
parent
ecc5d56a0e
commit
ad55b3419a
|
@ -31,7 +31,7 @@ if( !defined( 'MEDIAWIKI' ) ) {
|
|||
$wgExtensionCredits['parserhook'][] = array(
|
||||
'path' => __FILE__,
|
||||
'name' => 'AJAX Poll',
|
||||
'version' => '1.82 20130531',
|
||||
'version' => '1.83 20130605',
|
||||
'author' => array( 'Dariusz Siedlecki', 'Jack Phoenix', 'Thomas Gries' ),
|
||||
'descriptionmsg' => 'ajaxpoll-desc',
|
||||
'url' => 'https://www.mediawiki.org/wiki/Extension:AJAX_Poll',
|
||||
|
@ -58,6 +58,9 @@ $wgResourceModules['ext.ajaxpoll'] = $myResourceTemplate + array(
|
|||
'ajaxpoll.css',
|
||||
),
|
||||
'dependencies' => array(
|
||||
),
|
||||
'messages' => array(
|
||||
'ajaxpoll-submitting',
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ $(".ajaxpoll-answer-name label")
|
|||
$this.find(".ajaxpoll-hover-vote").addClass("ajaxpoll-checkevent");
|
||||
$this.find("input").prop("checked","checked");
|
||||
$( "#ajaxpoll-ajax-"+poll )
|
||||
.html("Please wait, submitting your vote.")
|
||||
.text( mw.message( 'ajaxpoll-submitting' ) )
|
||||
.css("display","inline-block");
|
||||
if (useAjax){
|
||||
sajax_do_call(
|
||||
|
|
Loading…
Reference in a new issue