Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function validateTaxNumber(number) {
- checkTaxNumber.call(number, function(resp) {
- return (resp.success) ? true : false;
- });
- var checkTaxNumber = _.extend({
- className : 'Signup_Controller',
- call : function (number, callback) {
- this.invokeCtx('checkTaxNumber',
- number,
- function (resp, evt) {
- if (evt && evt.status) {
- if (resp && resp.success) {
- console.log(resp);
- console.log('success');
- callback(resp);
- } else {
- console.log('error');
- callback(resp);
- }
- }
- },
- {buffer : false, nmsp : false}
- );
- }
- },CCRZ.RemoteInvocation);
- }
Add Comment
Please, Sign In to add comment