wikimedia/mediawiki-extensions-DonationInterface

View on GitHub
modules/js/ext.donationInterface.jaVariant02.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Experiment to determine whether different placeholder text and extra name
 * fields improve donation rates in Japan. Once tests are concluded and optimal
 * text is decided, please make the optimal text standard and delete this and
 * the extension.json module configuration for ext.donationInterface.jaVariant02
 * and ext.donationInterface.adyenCheckoutWithJaVariant02.
 *
 * @param mw
 * @param $
 */

( function ( mw, $ ) {
    mw.donationInterface = mw.donationInterface || {};
    mw.donationInterface.getExtraData = function () {
        return {
            first_name_phonetic: $( '#first_name_phonetic' ).val(),
            last_name_phonetic: $( '#last_name_phonetic' ).val()
        };
    };
} )( mediaWiki, jQuery );