/*======================================================================*\ || #################################################################### || || # Asirra module for ConfirmEdit by Bachsau # || || # ---------------------------------------------------------------- # || || # This code is released into public domain, in the hope that it # || || # will be useful, but without any warranty. # || || # ------------ YOU CAN DO WITH IT WHATEVER YOU LIKE! ------------- # || || #################################################################### || \*======================================================================*/ jQuery( function( $ ) { // Selectors for create account, login, and page edit forms. var asirraform = $( 'form#userlogin2, #userloginForm form, form#editform' ); var submitButtonClicked = document.createElement("input"); var passThroughFormSubmit = false; function PrepareSubmit() { submitButtonClicked.type = "hidden"; var inputFields = asirraform.find( "input" ); for (var i=0; i