Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test(data, callback) {
- if(data !== null) {
- if(typeof callback == 'function') {
- callback.success();
- }
- } else {
- if(typeof callback == 'function') {
- callback.error();
- }
- }
- }
- test($(form).serialize(), function () {
- success: function () {
- },
- error: function () {
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment