diff --git a/css/custom.css b/css/custom.css index a0de94c..dfbd55c 100755 --- a/css/custom.css +++ b/css/custom.css @@ -1381,7 +1381,7 @@ table { .color:hover{ color: #fff; } -.palak{ +/* .palak{ width: 100% !important; display: none !important; position: absolute !important; @@ -1389,7 +1389,7 @@ table { top: 0 !important; left: 0 !important; z-index: 99 !important; -} +} */ .active, .btn:hover, .btn:onclick { background-color: grey; border: grey; diff --git a/script.js b/script.js index 2747fa1..c3896dd 100644 --- a/script.js +++ b/script.js @@ -345,6 +345,9 @@ $scope.hidevalue = false; $scope.isShowHide = function (value) { console.log(value) + var element = document.getElementById("defaultcountry"); + element.classList.remove("btn-active"); + if (value == "INDIA") { console.log("value",value) $scope.showval = true; @@ -382,6 +385,7 @@ // $scope.data.city = ''; $scope.watch = function(){ + document.getElementById("ahmedabad").src = ""; // console.log("cllll",value) // $scope.data.city = value; // if($scope.data.city == "Chennai"){ @@ -589,7 +593,7 @@ }); - scotchApp.controller('registrationController', function($scope, $http, $location, $rootScope,$route,BASE_URL) { + scotchApp.controller('registrationController', function($q, $scope, $http, $location, $rootScope,$route,BASE_URL) { $scope.data = {}; $scope.check = false; $scope.numberCheck = false; @@ -716,7 +720,28 @@ $scope.data.phone = "+91"+$scope.data.number; if($scope.data.referalToken == null){ $scope.data.referalToken = "N.A." - } + } + var file =document.getElementById('filePicker').files[0]; + console.log("file",filePicker) + var image = BASE_URL+'/containers/applicants/download/' + console.log("file",image) + var imagePath = filePicker.name; + $scope.data.uploadFile = image + imagePath; + var fd = new FormData() + fd.append('filePicker',data); + + var deferred = $q.defer(); + $http({ + method:'POST', + url: BASE_URL+'/containers/applicants/upload', + data:fd, + transformRequest:angular.identity, + headers:{'Content-Type':undefined} + }) + .success(function(result){ + deferred.resolve(result); + }) + $http({ method: 'POST', url: BASE_URL+'/applicants',