Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_2_3step.html |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <!-- load styles from original first steps --> |
3 | 3 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/lp1.css" /> |
4 | | -<!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/skins-1.17/vector/csshover.min.htc")}</style><![endif]--> |
| 4 | +<!--[if lt IE 7]><style type="text/css">body{behavior:url("@script_path/skins/vector/csshover.min.htc")}</style><![endif]--> |
5 | 5 | <!-- start Webitects styles --> |
6 | 6 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 7 | <style type="text/css"> |
— | — | @@ -216,7 +216,7 @@ |
217 | 217 | <input type="hidden" value="@owa_ref" name="owa_ref"/> |
218 | 218 | </form> |
219 | 219 | <div id="where-content"> |
220 | | - <hr> |
| 220 | + <hr /> |
221 | 221 | <h3>Where your donation goes</h3> |
222 | 222 | <p><strong>Technology:</strong> Servers, bandwidth, maintenance, development. Wikipedia is the #5 website in the world and it runs on a fraction of what other top websites spend.</p> |
223 | 223 | <p><strong>People:</strong> The other top 10 website have thousands of employees. We have fewer than 100, making your donation a great investment in a highly-efficient not-for-profit organization.</p> |
— | — | @@ -342,7 +342,7 @@ |
343 | 343 | if ( validate_cc() ){ |
344 | 344 | // set the hidden expiration date input from the two selects |
345 | 345 | $('input[name="expiration"]').val( |
346 | | - $("select[name=mos]").val() + $('select[name="year"]').val().substring(2,4) |
| 346 | + $('select[name="mos"]').val() + $('select[name="year"]').val().substring(2,4) |
347 | 347 | ); |
348 | 348 | document.paypalcontribution.action = "@action"; |
349 | 349 | document.paypalcontribution.submit(); |
— | — | @@ -412,7 +412,7 @@ |
413 | 413 | }); |
414 | 414 | // set the hidden amount input to the value of the selected element |
415 | 415 | function setAmount(e){ |
416 | | - $("input[name=amount]").val( e.val() ); |
| 416 | + $('input[name="amount"]').val( e.val() ); |
417 | 417 | } |
418 | 418 | |
419 | 419 | // show the CVV help image on click |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1.html |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <!-- load styles from original first steps --> |
3 | 3 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/lp1.css" /> |
4 | | -<!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/skins-1.17/vector/csshover.min.htc")}</style><![endif]--> |
| 4 | +<!--[if lt IE 7]><style type="text/css">body{behavior:url("@script_path/skins/vector/csshover.min.htc")}</style><![endif]--> |
5 | 5 | <!-- start Webitects styles --> |
6 | 6 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 7 | <style type="text/css"> |
— | — | @@ -247,7 +247,7 @@ |
248 | 248 | $("#accordion").accordion( "activate" , 1 ); |
249 | 249 | |
250 | 250 | //we have clearly selected an amount before, make sure it is shown |
251 | | - showAmount( $("input[name=amount]") ); |
| 251 | + showAmount( $('input[name="amount"]') ); |
252 | 252 | |
253 | 253 | // hacks for IE6/IE7 |
254 | 254 | if (jQuery.browser.msie && jQuery.browser.version.substr(0,1)<9){ |
— | — | @@ -266,7 +266,7 @@ |
267 | 267 | |
268 | 268 | $("#cc").click(function(){ |
269 | 269 | if ( validateAmount(document.paypalcontribution) ){ |
270 | | - showAmount( $("input[name=amount]") ); |
| 270 | + showAmount( $('input[name="amount"]') ); |
271 | 271 | $("#accordion").accordion("activate", 1); |
272 | 272 | $("#change-amount").show(); |
273 | 273 | |
— | — | @@ -287,7 +287,7 @@ |
288 | 288 | $("#pp").click(function(){ |
289 | 289 | if ( validateAmount(document.paypalcontribution) ){ |
290 | 290 | // set the action to go to PayPal |
291 | | - $("input[name=gateway]").val("paypal"); |
| 291 | + $('input[name="gateway"]').val("paypal"); |
292 | 292 | document.paypalcontribution.action = "https://wikimediafoundation.org/wiki/Special:ContributionTracking/en"; |
293 | 293 | $("#loading").html("<img src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/images/loading-green.gif' /> Redirecting to PayPal…"); |
294 | 294 | document.paypalcontribution.submit(); |
— | — | @@ -295,12 +295,12 @@ |
296 | 296 | }); |
297 | 297 | $("#submitcreditcard").click(function(){ |
298 | 298 | // set country to US |
299 | | - $("input[name=country]").val("US"); |
| 299 | + $('input[name="country"]').val("US"); |
300 | 300 | |
301 | 301 | if ( validate_form(document.paypalcontribution) ){ |
302 | 302 | // set expiration date |
303 | | - $("input[name=expiration]").val( |
304 | | - $("select[name=mos]").val() + $("select[name=year]").val().substring(2,4) |
| 303 | + $('input[name="expiration"]').val( |
| 304 | + $('select[name="mos"]').val() + $('select[name="year"]').val().substring(2,4) |
305 | 305 | ) |
306 | 306 | |
307 | 307 | document.paypalcontribution.action = "@action"; |
— | — | @@ -315,9 +315,9 @@ |
316 | 316 | function showAmount(e){ $("#selected-amount").html("($" + e.val() + ")"); } |
317 | 317 | |
318 | 318 | // Set selected amount to amount |
319 | | - $("input[name=amountRadio]").click(function(){ setAmount($(this)); }); |
| 319 | + $('input[name="amountRadio"]').click(function(){ setAmount($(this)); }); |
320 | 320 | $("#other-amount").change(function(){ setAmount($(this)); }); |
321 | | - function setAmount(e){ $("input[name=amount]").val(e.val()); } |
| 321 | + function setAmount(e){ $('input[name="amount"]').val(e.val()); } |
322 | 322 | |
323 | 323 | // Security codes |
324 | 324 | $("#where").click(function(){ |
— | — | @@ -330,20 +330,20 @@ |
331 | 331 | 'USD' : 1 |
332 | 332 | }; |
333 | 333 | var error = true; |
334 | | - var amount = $("input[name=amount]").val(); // get the amount |
| 334 | + var amount = $('input[name="amount"]').val(); // get the amount |
335 | 335 | var otherAmount = amount // create a working copy |
336 | 336 | otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10'); |
337 | 337 | otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2'); |
338 | 338 | otherAmount = otherAmount.replace(/[,.]/g, ''); |
339 | 339 | otherAmount = otherAmount.replace(/:/, '.'); |
340 | 340 | amount = otherAmount; // idk, reset amount to working copy amount |
341 | | - $("input[name=amount]").val(amount); // set the new amount back into the form |
| 341 | + $('input[name="amount"]').val(amount); // set the new amount back into the form |
342 | 342 | |
343 | 343 | // Check amount is a real number, sets error as true (good) if no issues |
344 | 344 | error = ( amount == null || isNaN( amount ) || amount.value <= 0 ); |
345 | 345 | // Check amount is at least the minimum |
346 | 346 | var currency = 'USD'; // hard-coded for these forms and tests |
347 | | - $("input[name=currency]").val(currency); |
| 347 | + $('input[name="currency"]').val(currency); |
348 | 348 | if ( typeof( minimums[currency] ) == 'undefined' ) { |
349 | 349 | minimums[currency] = 1; |
350 | 350 | } |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1a.html |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <!-- load styles from original first steps --> |
3 | 3 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/lp1.css" /> |
4 | | -<!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/skins-1.17/vector/csshover.min.htc")}</style><![endif]--> |
| 4 | +<!--[if lt IE 7]><style type="text/css">body{behavior:url("@script_path/skins/vector/csshover.min.htc")}</style><![endif]--> |
5 | 5 | <!-- start Webitects styles --> |
6 | 6 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 7 | <style type="text/css"> |
— | — | @@ -248,7 +248,7 @@ |
249 | 249 | $("#accordion").accordion( "activate" , 1 ); |
250 | 250 | |
251 | 251 | //we have clearly selected an amount before, make sure it is shown |
252 | | - showAmount( $("input[name=amount]") ); |
| 252 | + showAmount( $('input[name="amount"]') ); |
253 | 253 | |
254 | 254 | // hacks for IE6/IE7 |
255 | 255 | if (jQuery.browser.msie && jQuery.browser.version.substr(0,1)<9){ |
— | — | @@ -267,7 +267,7 @@ |
268 | 268 | |
269 | 269 | $("#cc").click(function(){ |
270 | 270 | if ( validateAmount(document.paypalcontribution) ){ |
271 | | - showAmount( $("input[name=amount]") ); |
| 271 | + showAmount( $('input[name="amount"]') ); |
272 | 272 | $("#accordion").accordion("activate", 1); |
273 | 273 | $("#change-amount").show(); |
274 | 274 | |
— | — | @@ -288,7 +288,7 @@ |
289 | 289 | $("#pp").click(function(){ |
290 | 290 | if ( validateAmount(document.paypalcontribution) ){ |
291 | 291 | // set the action to go to PayPal |
292 | | - $("input[name=gateway]").val("paypal"); |
| 292 | + $('input[name="gateway"]').val("paypal"); |
293 | 293 | document.paypalcontribution.action = "https://wikimediafoundation.org/wiki/Special:ContributionTracking/en"; |
294 | 294 | $("#loading").html("<img src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/images/loading-green.gif' /> Redirecting to PayPal…"); |
295 | 295 | document.paypalcontribution.submit(); |
— | — | @@ -296,11 +296,11 @@ |
297 | 297 | }); |
298 | 298 | $("#submitcreditcard").click(function(){ |
299 | 299 | // set country to US |
300 | | - $("input[name=country]").val("US"); |
| 300 | + $('input[name="country"]').val("US"); |
301 | 301 | |
302 | 302 | if ( validate_form(document.paypalcontribution) ){ |
303 | 303 | // set expiration date |
304 | | - $("input[name=expiration]").val( |
| 304 | + $('input[name="expiration"]').val( |
305 | 305 | $("select[name=mos]").val() + $("select[name=year]").val().substring(2,4) |
306 | 306 | ) |
307 | 307 | |
— | — | @@ -316,9 +316,9 @@ |
317 | 317 | function showAmount(e){ $("#selected-amount").html("($" + e.val() + ")"); } |
318 | 318 | |
319 | 319 | // Set selected amount to amount |
320 | | - $("input[name=amountRadio]").click(function(){ setAmount($(this)); }); |
| 320 | + $('input[name="amountRadio"]').click(function(){ setAmount($(this)); }); |
321 | 321 | $("#other-amount").change(function(){ setAmount($(this)); }); |
322 | | - function setAmount(e){ $("input[name=amount]").val(e.val()); } |
| 322 | + function setAmount(e){ $('input[name="amount"]').val(e.val()); } |
323 | 323 | |
324 | 324 | // Security codes |
325 | 325 | $("#where").click(function(){ |
— | — | @@ -331,20 +331,20 @@ |
332 | 332 | 'USD' : 1 |
333 | 333 | }; |
334 | 334 | var error = true; |
335 | | - var amount = $("input[name=amount]").val(); // get the amount |
| 335 | + var amount = $('input[name="amount"]').val(); // get the amount |
336 | 336 | var otherAmount = amount // create a working copy |
337 | 337 | otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10'); |
338 | 338 | otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2'); |
339 | 339 | otherAmount = otherAmount.replace(/[,.]/g, ''); |
340 | 340 | otherAmount = otherAmount.replace(/:/, '.'); |
341 | 341 | amount = otherAmount; // idk, reset amount to working copy amount |
342 | | - $("input[name=amount]").val(amount); // set the new amount back into the form |
| 342 | + $('input[name="amount"]').val(amount); // set the new amount back into the form |
343 | 343 | |
344 | 344 | // Check amount is a real number, sets error as true (good) if no issues |
345 | 345 | error = ( amount == null || isNaN( amount ) || amount.value <= 0 ); |
346 | 346 | // Check amount is at least the minimum |
347 | 347 | var currency = 'USD'; // hard-coded for these forms and tests |
348 | | - $("input[name=currency]").val(currency); |
| 348 | + $('input[name="currency"]').val(currency); |
349 | 349 | if ( typeof( minimums[currency] ) == 'undefined' ) { |
350 | 350 | minimums[currency] = 1; |
351 | 351 | } |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_2.html |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <!-- load styles from original first steps --> |
3 | 3 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/lp1.css" /> |
4 | | -<!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/skins-1.17/vector/csshover.min.htc")}</style><![endif]--> |
| 4 | +<!--[if lt IE 7]><style type="text/css">body{behavior:url("@script_path/skins/vector/csshover.min.htc")}</style><![endif]--> |
5 | 5 | <!-- start Webitects styles --> |
6 | 6 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 7 | <style type="text/css"> |
— | — | @@ -204,7 +204,7 @@ |
205 | 205 | </div> |
206 | 206 | </form> |
207 | 207 | <div id="where-content"> |
208 | | - <hr> |
| 208 | + <hr /> |
209 | 209 | <h3>Where your donation goes</h3> |
210 | 210 | <p><strong>Technology:</strong> Servers, bandwidth, maintenance, development. Wikipedia is the #5 website in the world and it runs on a fraction of what other top websites spend.</p> |
211 | 211 | <p><strong>People:</strong> The other top 10 website have thousands of employees. We have fewer than 100, making your donation a great investment in a highly-efficient not-for-profit organization.</p> |
— | — | @@ -255,7 +255,7 @@ |
256 | 256 | } |
257 | 257 | if( count > 0 ){ |
258 | 258 | // show the second step with the error |
259 | | - showAmount( $("input[name=amount]") ); |
| 259 | + showAmount( $('input[name="amount"]') ); |
260 | 260 | // show second step |
261 | 261 | $(".hideamountclass").slideUp(); |
262 | 262 | $("#step2wrapper").slideDown(); |
— | — | @@ -273,7 +273,7 @@ |
274 | 274 | |
275 | 275 | $("#cc").click(function(){ |
276 | 276 | if ( validateAmount(document.paypalcontribution) ){ |
277 | | - showAmount( $("input[name=amount]") ); |
| 277 | + showAmount( $('input[name="amount"]') ); |
278 | 278 | // show second step |
279 | 279 | $(".hideamountclass").slideUp(); |
280 | 280 | $("#step2wrapper").slideDown(); |
— | — | @@ -291,7 +291,7 @@ |
292 | 292 | $("#pp").click(function(){ |
293 | 293 | if ( validateAmount(document.paypalcontribution) ){ |
294 | 294 | // set the action to go to PayPal |
295 | | - $("input[name=gateway]").val("paypal"); |
| 295 | + $('input[name="gateway"]').val("paypal"); |
296 | 296 | document.paypalcontribution.action = "https://wikimediafoundation.org/wiki/Special:ContributionTracking/en"; |
297 | 297 | $("#loading").html("<img src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/images/loading-white.gif' /> Redirecting to PayPal…"); |
298 | 298 | document.paypalcontribution.submit(); |
— | — | @@ -299,12 +299,12 @@ |
300 | 300 | }); |
301 | 301 | $("#submitcreditcard").click(function(){ |
302 | 302 | // set country to US |
303 | | - $("input[name=country]").val("US"); |
| 303 | + $('input[name="country"]').val("US"); |
304 | 304 | |
305 | 305 | if ( validate_form(document.paypalcontribution) ){ |
306 | 306 | // set expiration date |
307 | | - $("input[name=expiration]").val( |
308 | | - $("select[name=mos]").val() + $("select[name=year]").val().substring(2,4) |
| 307 | + $('input[name="expiration"]').val( |
| 308 | + $('select[name="mos"]').val() + $('select[name="year"]').val().substring(2,4) |
309 | 309 | ); |
310 | 310 | |
311 | 311 | document.paypalcontribution.action = "@action"; |
— | — | @@ -319,9 +319,9 @@ |
320 | 320 | function showAmount(e){ $("#selected-amount").html("($" + e.val() + ")"); } |
321 | 321 | |
322 | 322 | // Set selected amount to amount |
323 | | - $("input[name=amountRadio]").click(function(){ setAmount($(this)); }); |
| 323 | + $('input[name="amountRadio"]').click(function(){ setAmount($(this)); }); |
324 | 324 | $("#other-amount").change(function(){ setAmount($(this)); }); |
325 | | - function setAmount(e){ $("input[name=amount]").val(e.val()); } |
| 325 | + function setAmount(e){ $('input[name="amount"]').val(e.val()); } |
326 | 326 | |
327 | 327 | // Security codes |
328 | 328 | $("#where").click(function(){ |
— | — | @@ -334,20 +334,20 @@ |
335 | 335 | 'USD' : 1 |
336 | 336 | }; |
337 | 337 | var error = true; |
338 | | - var amount = $("input[name=amount]").val(); // get the amount |
| 338 | + var amount = $('input[name="amount"]').val(); // get the amount |
339 | 339 | var otherAmount = amount // create a working copy |
340 | 340 | otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10'); |
341 | 341 | otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2'); |
342 | 342 | otherAmount = otherAmount.replace(/[,.]/g, ''); |
343 | 343 | otherAmount = otherAmount.replace(/:/, '.'); |
344 | 344 | amount = otherAmount; // idk, reset amount to working copy amount |
345 | | - $("input[name=amount]").val(amount); // set the new amount back into the form |
| 345 | + $('input[name="amount"]').val(amount); // set the new amount back into the form |
346 | 346 | |
347 | 347 | // Check amount is a real number, sets error as true (good) if no issues |
348 | 348 | error = ( amount == null || isNaN( amount ) || amount.value <= 0 ); |
349 | 349 | // Check amount is at least the minimum |
350 | 350 | var currency = 'USD'; // hard-coded for these forms and tests |
351 | | - $("input[name=currency]").val(currency); |
| 351 | + $('input[name="currency"]').val(currency); |
352 | 352 | if ( typeof( minimums[currency] ) == 'undefined' ) { |
353 | 353 | minimums[currency] = 1; |
354 | 354 | } |