Jump to content

User:Gryllida/js/afch2.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
{{wikify}}

$(document).ready( function () {
    // Wait for the page to be parsed
    $(document).ready( function () { 
 
        var link = mw.util.addPortletLink( 'p-cactions', '#', 'Review2', 'ca-afch2', 'Fail at afc reviewing');
        $( link ).click( function ( event ) {
            event.preventDefault();
            doAfch2();
 
        } );
    } );
} );

function doAfch2() {
    document.editform.wpTextbox1.value = "{" + "{wikify}}\n\n" + document.editform.wpTextbox1.value;
    document.editform.submit();
}