third commit

This commit is contained in:
sujitprasad
2015-09-30 15:16:34 +05:30
parent d6d1cb0847
commit 2b1451e9a5
1706 changed files with 37470 additions and 24902 deletions

View File

@@ -0,0 +1,31 @@
jQuery( document ).ready( function( $ ) {
$( '#form-add-setting' ).on( 'submit', function() {
//.....
//show some spinner etc to indicate operation in progress
//.....
$.post(
$( this ).prop( 'action' ),
{
"_token": $( this ).find( 'input[name=_token]' ).val(),
"setting_name": $( '#setting_name' ).val(),
"setting_value": $( '#setting_value' ).val()
},
function( data ) {
//do something with data/response returned by server
},
'json'
);
//.....
//do anything else you might want to do
//.....
//prevent the form from actually submitting in browser
return false;
} );
} );