Commit 1b31b20bf2b39dd7233e0867f5d243bf09631902
1 parent
500aaf8382
Exists in
master
and in
1 other branch
auto highlighted issue solve
Showing
2 changed files
with
29 additions
and
4 deletions
Show diff stats
css/custom.css
... | ... | @@ -1381,7 +1381,7 @@ table { |
1381 | 1381 | .color:hover{ |
1382 | 1382 | color: #fff; |
1383 | 1383 | } |
1384 | -.palak{ | |
1384 | +/* .palak{ | |
1385 | 1385 | width: 100% !important; |
1386 | 1386 | display: none !important; |
1387 | 1387 | position: absolute !important; |
... | ... | @@ -1389,7 +1389,7 @@ table { |
1389 | 1389 | top: 0 !important; |
1390 | 1390 | left: 0 !important; |
1391 | 1391 | z-index: 99 !important; |
1392 | -} | |
1392 | +} */ | |
1393 | 1393 | .active, .btn:hover, .btn:onclick { |
1394 | 1394 | background-color: grey; |
1395 | 1395 | border: grey; | ... | ... |
script.js
... | ... | @@ -345,6 +345,9 @@ |
345 | 345 | $scope.hidevalue = false; |
346 | 346 | $scope.isShowHide = function (value) { |
347 | 347 | console.log(value) |
348 | + var element = document.getElementById("defaultcountry"); | |
349 | + element.classList.remove("btn-active"); | |
350 | + | |
348 | 351 | if (value == "INDIA") { |
349 | 352 | console.log("value",value) |
350 | 353 | $scope.showval = true; |
... | ... | @@ -382,6 +385,7 @@ |
382 | 385 | |
383 | 386 | // $scope.data.city = ''; |
384 | 387 | $scope.watch = function(){ |
388 | + document.getElementById("ahmedabad").src = ""; | |
385 | 389 | // console.log("cllll",value) |
386 | 390 | // $scope.data.city = value; |
387 | 391 | // if($scope.data.city == "Chennai"){ |
... | ... | @@ -589,7 +593,7 @@ |
589 | 593 | |
590 | 594 | }); |
591 | 595 | |
592 | - scotchApp.controller('registrationController', function($scope, $http, $location, $rootScope,$route,BASE_URL) { | |
596 | + scotchApp.controller('registrationController', function($q, $scope, $http, $location, $rootScope,$route,BASE_URL) { | |
593 | 597 | $scope.data = {}; |
594 | 598 | $scope.check = false; |
595 | 599 | $scope.numberCheck = false; |
... | ... | @@ -716,7 +720,28 @@ |
716 | 720 | $scope.data.phone = "+91"+$scope.data.number; |
717 | 721 | if($scope.data.referalToken == null){ |
718 | 722 | $scope.data.referalToken = "N.A." |
719 | - } | |
723 | + } | |
724 | + var file =document.getElementById('filePicker').files[0]; | |
725 | + console.log("file",filePicker) | |
726 | + var image = BASE_URL+'/containers/applicants/download/' | |
727 | + console.log("file",image) | |
728 | + var imagePath = filePicker.name; | |
729 | + $scope.data.uploadFile = image + imagePath; | |
730 | + var fd = new FormData() | |
731 | + fd.append('filePicker',data); | |
732 | + | |
733 | + var deferred = $q.defer(); | |
734 | + $http({ | |
735 | + method:'POST', | |
736 | + url: BASE_URL+'/containers/applicants/upload', | |
737 | + data:fd, | |
738 | + transformRequest:angular.identity, | |
739 | + headers:{'Content-Type':undefined} | |
740 | + }) | |
741 | + .success(function(result){ | |
742 | + deferred.resolve(result); | |
743 | + }) | |
744 | + | |
720 | 745 | $http({ |
721 | 746 | method: 'POST', |
722 | 747 | url: BASE_URL+'/applicants', | ... | ... |