MediaWiki:DonationFormSandbox.js: Difference between revisions

Content deleted Content added
mNo edit summary
Tag: Reverted
m Reverted edits by PPenloglou-WMF (talk) to last revision by Pcoombe
Tag: Rollback
Line 1,499:
 
});
 
// Check if the 'fundraiseupScript' parameter exists in the URL and is set to '1'
if (mw.util.getParamValue('fundraiseupScript') === '1') {
// Insert the template into a specific element on the page
mw.loader.using('mediawiki.api').then(function() {
new mw.Api().get({
action: 'parse',
page: 'Template:Footer/PrivacyThirdParty/Default',
prop: 'text',
format: 'json'
}).done(function(data) {
if (data.parse && data.parse.text) {
$('#donate-privacy').after(data.parse.text['*']);
}
});
});
}