הבדלים בין גרסאות בדף "מדיה ויקי:Gadget-checkVoteRights.js"

deprecated functions replaced
מ (ראו ערך: 30 בפברואר.)
(deprecated functions replaced)
function checkVoteRight(){
 
var self = this;,
namespaceNumber = mw.config.get('wgNamespaceNumber');
 
/** VARIABLES **/
.text('בדיקה')
.click(function(){
if(wgNamespaceNumbernamespaceNumber == 1 || wgNamespaceNumbernamespaceNumber == 4){ // not a user (talk) page
self.buildForVote();
$('#cvr-dialog').hide();
$('#cvr-minute').append($('<option>').text(self.format(m)));
 
if(wgNamespaceNumbernamespaceNumber == 4 && self.voteStart.length) // vote page with starting time
self.fillInVote();
}
 
$(function(){
if(wgNamespaceNumber >= 1 && wgNamespaceNumber <= 4)
var namespaceNumber = mw.config.get('wgNamespaceNumber');
if(namespaceNumber >= 1 && namespaceNumber <= 4)
mw.loader.using('jquery.ui.datepicker', function(){
var check = new checkVoteRight();