[FIX] Do not call success_callback if none given
bzr revid: fme@openerp.com-20110601105652-wmtapmthal3yi9h6
This commit is contained in:
@@ -371,7 +371,7 @@ openerp.base.Session = openerp.base.BasicController.extend( /** @lends openerp.b
|
||||
} else {
|
||||
error_callback(response.error);
|
||||
}
|
||||
} else {
|
||||
} else if (success_callback) {
|
||||
success_callback(response["result"], textStatus, jqXHR);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user