Guest User

Untitled

a guest
Jul 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // validate this.form
  2. this.validation = new ProValidate(this.form.identify(),{
  3. submitOnValid: 'AJAX',
  4. requestOptions:{
  5. onComplete: function(t){
  6. var json = t.responseJSON;
  7. if(json.status !== 'success') return;
  8. if(json.data) Listing.instance.data = json.data;
  9. Listing.instance.getListings('lid_'+Listing.instance.data.id);
  10. }
  11. }
  12. });
  13.  
  14.  
  15.  
  16. var validation = new ProValidate(form, {
  17. submitOnValid: 'AJAX'
  18. });
Add Comment
Please, Sign In to add comment