MediaWiki:Resources/landingpage.js: Difference between revisions

Content deleted Content added
use $.param() to avoid &s
fixes...
Line 21:
if ( now < outages[i]['end'] ) {
 
if ( (typeof outages[i]['country'] === 'undefined') || (outages[i]['country'] == country) ) {
if $('.paymentmethod-' + outages[i]['countrymethod'] == Geo).country hide() {;
$('.paymentmethod-' + outages[i]['method']).hide();
}
}
 
Line 31 ⟶ 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(){
 
// 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