Commit e5a431c9 authored by Eric Windham's avatar Eric Windham

made requested changes

parent 156cf871
......@@ -32,7 +32,7 @@ define([], function() {
* @return void
*/
submit: function( formModel ) {
console.log(nfFrontEnd);
/*
* Send out a radio message saying that we're about to begin submitting.
* First we send on the generic forms channel, and then on the form-specific channel.
......
......@@ -132,6 +132,7 @@ jQuery( document ).ready( function( $ ) {
* This function retrieves a new, unique nonce so that we avoid
* giving the user a nonce that could possibly expire before
* they finish filling out the form.
* @since 3.2
*/
getNonce: function() {
var data = {
......
This diff is collapsed.
This diff is collapsed.
......@@ -143,6 +143,7 @@ class NF_AJAX_Controllers_Form extends NF_Abstracts_Controller
/**
* Let's generate a unique nonce for each form render so that we don't get
* caught with an expiring nonce accidentally and fail to allow a submission
* @since 3.2
*/
public function get_new_nonce() {
// get a timestamp to append to nonce name
......
......@@ -575,7 +575,6 @@ final class NF_Display_Render
wp_localize_script( 'nf-front-end', 'nfi18n', Ninja_Forms::config( 'i18nFrontEnd' ) );
$data = apply_filters( 'ninja_forms_render_localize_script_data', array(
// 'ajaxNonce' => wp_create_nonce( 'ninja_forms_display_nonce' ),
'adminAjax' => admin_url( 'admin-ajax.php' ),
'requireBaseUrl' => Ninja_Forms::$url . 'assets/js/',
'use_merge_tags' => array(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment