Skip to content

Commit 7bd9a66

Browse files
author
RiDdLeS
committed
Fixing ajaxSubmit callback
1 parent 122263d commit 7bd9a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/master.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
if (response.status == 'success') {
4343
$('#' + formId + ' #message').html(opts.successMessage);
4444

45-
if ( $.isFunction( responseDataCallBack ) && response.data.length > 0) {
45+
if ( $.isFunction( responseDataCallBack ) && !jQuery.isEmptyObject(response.data)) {
4646
responseDataCallBack.call(this, response.data );
4747
}
4848
}

0 commit comments

Comments
 (0)