You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is my own method than call to ajax for validation remotefunctioncheckValidatorEmailUnique(params){varaDeferred=jQuery.Deferred();if(typeofparams=='undefined'){params={};}params.success=function(data,status,jqXHR){aDeferred.resolve(data);};params.error=function(jqXHR,textStatus,errorThrown){aDeferred.reject(textStatus,errorThrown);};jQuery.ajax(params);returnaDeferred.promise();}ClientSideValidations.validators.remote['uniqueness']=function(element,options){varpromise_response=$.Deferred();varparams={url: '/validator/check_email',data: {id: element.val()},};checkValidatorEmailUnique(params).done(function(response){promise_response.resolve(options.message);});returnpromise_response};
I hope It helps you!!
The text was updated successfully, but these errors were encountered:
Maybe is not the best way, but I try help someone
this method I change :
And for call It
I hope It helps you!!
The text was updated successfully, but these errors were encountered: