Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. var 1
  2.  
  3.  
  4. validateAcc: function(inputValue, inputName){
  5. if(inputValue && inputValue.length >= 6 && inputValue.length <= 16){
  6. if(['2600','2650'].indexOf(inputValue.slice(0,4)) > -1) {
  7. inputName.$setValidity("validateAcc", true);
  8. }
  9. else {
  10. inputName.$setValidity('validateAcc', false)
  11. }
  12. }
  13. else {
  14. inputName.$setValidity('validateAcc', false)
  15. }
  16. },
  17. validateMfo: function(inputValue, inputName) {
  18. if(inputValue && inputValue.length == 6) {
  19. inputName.$setValidity('validateMFO', true)
  20.  
  21. }
  22. else {
  23. inputName.$setValidity('validateMFO', false)
  24. }
  25. }
  26.  
  27.  
  28. var 2
  29.  
  30.  
  31. validateAcc: function(inputValue, inputName){
  32. inputName.$setValidity("validateAcc", (inputValue && inputValue.length >['2600','2650'].indexOf(inputValue.slice(0,4)) > -1));
  33.  
  34. },
  35. validateMfo: function(inputValue, inputName) {
  36. inputName.$setValidity('validateMFO', (inputValue && inputValue.length === 6));
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement