MediaWiki:Resources/landingpage.js: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
use $.param() to avoid &s
fixes...
Line 21: Line 21:
if ( now < outages[i]['end'] ) {
if ( now < outages[i]['end'] ) {


if ( outages[i]['country'] ) {
if ( (typeof outages[i]['country'] === 'undefined') || (outages[i]['country'] == country) ) {
if ( outages[i]['country'] == Geo.country ) {
$('.paymentmethod-' + outages[i]['method']).hide();
$('.paymentmethod-' + outages[i]['method']).hide();
}
}
}


Line 31: Line 29:
}
}
}
}

// Pull outages list from meta, then run the function
$.getScript('//meta.wikimedia.org/w/index.php?' + $.param( { title:'MediaWiki:FR2013/Resources/PaymentOutages.js', action:'raw' } ),
checkPaymentOutages() );


$(document).ready(function(){
$(document).ready(function(){

// Pull outages list from meta, then run the function
$.getScript('//meta.wikimedia.org/w/index.php?' + $.param( { title:'MediaWiki:FR2013/Resources/PaymentOutages.js', action:'raw' } ),
checkPaymentOutages() );


// Disable submitting form with return key
// Disable submitting form with return key