Commit 45141d2469972db2a3b9e52835ba9e4ead6602f7
1 parent
c3f9ec3318
Exists in
master
and in
1 other branch
delete validation
Showing
2 changed files
with
43 additions
and
44 deletions
Show diff stats
pages/registration.html
... | ... | @@ -426,12 +426,11 @@ |
426 | 426 | <div class="icon-circle-d"> |
427 | 427 | <i class="material-icons" style="line-height: 30px;">email</i> |
428 | 428 | </div> |
429 | - <input type="email" name="email" style="margin-bottom:5px" | |
430 | - ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)" ng-keyup="emailTest($event)"> | |
431 | - <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> | |
432 | - <label ng-if="check">Email already exist.<a href="http://apply.startupjalsa.com/#/pendingPayment/{{emailId}}">Click here</a> to complete payment</label> | |
429 | + <input type="email" name="email" style="margin-bottom:5px" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-change="enteremail(data.email); emailkeyPress(data.email)" ng-keyup="emailTest($event)"> | |
430 | + <!-- <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> --> | |
431 | +<!-- <label ng-if="check">Email already exist.<a href="http://apply.startupjalsa.com/#/pendingPayment/{{emailId}}">Click here</a> to complete payment</label> | |
433 | 432 | <label style="color: #ff0000;margin: 5px 4px -5px 0px" ng-if="space == true" >Please remove the space.</label> |
434 | - | |
433 | + --> | |
435 | 434 | </div> |
436 | 435 | <!-- <div class="col-xs-12 col-md-6 input-wrapper f-family"> |
437 | 436 | <div class="icon-circle-f"> |
... | ... | @@ -802,7 +801,7 @@ |
802 | 801 | </div> |
803 | 802 | </div> |
804 | 803 | </div> |
805 | -<div class="modal fade" id="myModal" role="dialog"> | |
804 | +<!-- <div class="modal fade" id="myModal" role="dialog"> | |
806 | 805 | <div class="modal-dialog" style="left: auto;"> |
807 | 806 | <div class="modal-content"> |
808 | 807 | <div class="modal-body" style="text-align:center;margin-top:5%"> |
... | ... | @@ -813,7 +812,7 @@ |
813 | 812 | </div> |
814 | 813 | </div> |
815 | 814 | </div> |
816 | -</div> | |
815 | +</div> --> | |
817 | 816 | <!-- CLOSE NEW-CONTROLLER --> |
818 | 817 | <!-- <div id="snacsskbar">Registration done successfully.</div> |
819 | 818 | --><!-- <div class="modal fade" id="myModal" role="dialog"> | ... | ... |
script.js
... | ... | @@ -346,36 +346,36 @@ |
346 | 346 | console.log('gdggsg', value); |
347 | 347 | } |
348 | 348 | |
349 | - $scope.removeError = function() { | |
350 | - $('#invalidEmail').css('display', 'none'); | |
351 | - $('#alreadyExist').css('display', 'none'); | |
352 | - }; | |
353 | - | |
354 | - $scope.emailcheck = function(val) { | |
355 | - console.log(val) | |
356 | - $scope.space = /\s/g.test(val); | |
357 | - console.log("space",$scope.space) | |
358 | - if (val == undefined) { | |
359 | - $('#invalidEmail').css('display', 'block'); | |
360 | - } else { | |
361 | - $http({ | |
362 | - method: 'GET', | |
363 | - url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', | |
364 | - headers: {} | |
365 | - }).then(function mySuccess(searchResult) { | |
366 | - console.log("searchResult1===>", searchResult) | |
367 | - if (searchResult.data.length == 0) { | |
368 | - $scope.check = false; | |
369 | - } else { | |
370 | - $scope.check = true; | |
371 | - $scope.emailId = searchResult.data[0].id | |
372 | - $('#alreadyExist').css('display', 'block'); | |
373 | - | |
374 | - } | |
375 | - console.log("$scope.data.id",searchResult.data) | |
376 | - }, function myError(error) {}); | |
377 | - } | |
378 | - }; | |
349 | + // $scope.removeError = function() { | |
350 | + // $('#invalidEmail').css('display', 'none'); | |
351 | + // $('#alreadyExist').css('display', 'none'); | |
352 | + // }; | |
353 | + | |
354 | + // $scope.emailcheck = function(val) { | |
355 | + // console.log(val) | |
356 | + // $scope.space = /\s/g.test(val); | |
357 | + // console.log("space",$scope.space) | |
358 | + // if (val == undefined) { | |
359 | + // $('#invalidEmail').css('display', 'block'); | |
360 | + // } else { | |
361 | + // $http({ | |
362 | + // method: 'GET', | |
363 | + // url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', | |
364 | + // headers: {} | |
365 | + // }).then(function mySuccess(searchResult) { | |
366 | + // console.log("searchResult1===>", searchResult) | |
367 | + // if (searchResult.data.length == 0) { | |
368 | + // $scope.check = false; | |
369 | + // } else { | |
370 | + // $scope.check = true; | |
371 | + // $scope.emailId = searchResult.data[0].id | |
372 | + // $('#alreadyExist').css('display', 'block'); | |
373 | + | |
374 | + // } | |
375 | + // console.log("$scope.data.id",searchResult.data) | |
376 | + // }, function myError(error) {}); | |
377 | + // } | |
378 | + // }; | |
379 | 379 | |
380 | 380 | $scope.removeNoError = function() { |
381 | 381 | $('#noExist').css('display', 'none'); |
... | ... | @@ -664,9 +664,9 @@ |
664 | 664 | } |
665 | 665 | }, function myError(error) { |
666 | 666 | console.log("error",error) |
667 | - $scope.emailId = error.data.error.message; | |
668 | - $scope.id = error.data.error.id; | |
669 | - $('#myModal').modal('show'); | |
667 | + // $scope.emailId = error.data.error.message; | |
668 | + // $scope.id = error.data.error.id; | |
669 | + // $('#myModal').modal('show'); | |
670 | 670 | }); |
671 | 671 | } |
672 | 672 | |
... | ... | @@ -776,11 +776,11 @@ |
776 | 776 | |
777 | 777 | } |
778 | 778 | |
779 | - $scope.emailTest = function(s){ | |
780 | - $scope.space = /\s/g.test(s.delegateTarget.value); | |
781 | - console.log("space",$scope.space) | |
779 | + // $scope.emailTest = function(s){ | |
780 | + // $scope.space = /\s/g.test(s.delegateTarget.value); | |
781 | + // console.log("space",$scope.space) | |
782 | 782 | |
783 | - } | |
783 | + // } | |
784 | 784 | // $scope.enterbusiness = function(business) { |
785 | 785 | // console.log("business", business); |
786 | 786 | // if (name == undefined) { | ... | ... |