Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('form').on('submit', function(e){
- var t = $(this);
- e.preventDefault();
- $.ajax({
- url: 'admin.php?import=true',
- method: 'GET',
- dataType: 'JSON',
- success: function(data){
- if ( data.success == true )
- t.unbind('submit').submit();
- }
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement