Template:2012FR/Form-section/Privacy/Default: Difference between revisions

Content deleted Content added
Pgehres (WMF) (talk | contribs)
No edit summary
use mw.util.getParamValue instead of parseParams
Line 15:
<script type="text/javascript">
$(document).ready(function() {
if (paramsOut[ mw.util.getParamValue('form-countryspecific']) == 'Form-countryspecific-monthly' || paramsOut[mw.util.getParamValue('form-countryspecific']) == 'Form-countryspecific-recurring' || showMonthlyCancel) {
var paramsOut = parseParams(window.location.href); // create an object with the current querystring parameters
if (paramsOut['form-countryspecific'] == 'Form-countryspecific-monthly' || paramsOut['form-countryspecific'] == 'Form-countryspecific-recurring' || showMonthlyCancel) {
// We're on a monthly page, show the cancel text
$('#cancel-monthly').show();