Difference between revisions of "MediaWiki:Common.js"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(tweak)
(fix)
Line 1: Line 1:
 
if ( ( mw.config.get('wgPageName') == 'Home' || mw.config.get('wgPageName') =='Donate' ) && ( wgNamespaceNumber == 0 ) ) {
 
if ( ( mw.config.get('wgPageName') == 'Home' || mw.config.get('wgPageName') =='Donate' ) && ( wgNamespaceNumber == 0 ) ) {
$('#donatebutton').html('<form action="https://checkout.google.com/cws/v2/Donations/334897480085960/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"><input name="item_name_1" type="hidden" value="Wiki Society of Washington, DC"/><input name="item_description_1" type="hidden" value="Support DC region Wikimedia volunteers"/><input name="item_quantity_1" type="hidden" value="1"/><input name="item_currency_1" type="hidden" value="USD"/><input name="item_is_modifiable_1" type="hidden" value="true"/><input name="item_min_price_1" type="hidden" value="0.01"/><input name="item_max_price_1" type="hidden" value="25000.0"/><input name="_charset_" type="hidden" value="utf-8"/><table cellpadding="5" cellspacing="0" width="1%"><tr><td align="right" nowrap="nowrap" width="1%">&#x24; <input id="item_price_1" name="item_price_1" focus="this.style.color=\'black\'; this.value=\'\';" size="11" style="color:grey;" type="text" value="Enter Amount"/></td><td align="left" width="1%"><input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=334897480085960&amp;w=115&amp;h=50&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/></td></tr></table></form>');
+
$('#donatebutton').html('<form action="https://checkout.google.com/cws/v2/Donations/334897480085960/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"><input name="item_name_1" type="hidden" value="Wiki Society of Washington, DC"/><input name="item_description_1" type="hidden" value="Support DC region Wikimedia volunteers"/><input name="item_quantity_1" type="hidden" value="1"/><input name="item_currency_1" type="hidden" value="USD"/><input name="item_is_modifiable_1" type="hidden" value="true"/><input name="item_min_price_1" type="hidden" value="0.01"/><input name="item_max_price_1" type="hidden" value="25000.0"/><input name="_charset_" type="hidden" value="utf-8"/><table cellpadding="5" cellspacing="0" width="1%"><tr><td align="right" nowrap="nowrap" width="1%">&#x24; <input id="item_price_1" name="item_price_1" onfocus="this.style.color=\'black\'; this.value=\'\';" size="11" style="color:grey;" type="text" value="Enter Amount"/></td><td align="left" width="1%"><input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=334897480085960&amp;w=115&amp;h=50&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/></td></tr></table></form>');
 
}
 
}

Revision as of 15:53, 16 September 2011

if ( ( mw.config.get('wgPageName') == 'Home' || mw.config.get('wgPageName') =='Donate' ) && ( wgNamespaceNumber == 0 ) ) {
  $('#donatebutton').html('<form action="https://checkout.google.com/cws/v2/Donations/334897480085960/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"><input name="item_name_1" type="hidden" value="Wiki Society of Washington, DC"/><input name="item_description_1" type="hidden" value="Support DC region Wikimedia volunteers"/><input name="item_quantity_1" type="hidden" value="1"/><input name="item_currency_1" type="hidden" value="USD"/><input name="item_is_modifiable_1" type="hidden" value="true"/><input name="item_min_price_1" type="hidden" value="0.01"/><input name="item_max_price_1" type="hidden" value="25000.0"/><input name="_charset_" type="hidden" value="utf-8"/><table cellpadding="5" cellspacing="0" width="1%"><tr><td align="right" nowrap="nowrap" width="1%">&#x24; <input id="item_price_1" name="item_price_1" onfocus="this.style.color=\'black\'; this.value=\'\';" size="11" style="color:grey;" type="text" value="Enter Amount"/></td><td align="left" width="1%"><input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=334897480085960&amp;w=115&amp;h=50&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/></td></tr></table></form>');
}