From 1ee8a72bdece4c30ae119c024407b2d09662613b Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 27 Mar 2020 17:42:46 +0530 Subject: [PATCH] setting cancel is done now need to save selected skintone n modesty in DB and load saved settings at time of login --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index eb69b0d..8d446aa 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -701,6 +701,12 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data } + if (result.UserTypeId == 6) { + $('#modestyDiv').css('pointerEvent', 'none'); + $('#modestyDiv').css('opacity', 0.4); + $("#modestyDiv").find("*").prop('disabled', true); + } + if (result.LicenseInfo != null) { // set license id @@ -5883,10 +5889,15 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data if (currentmodsetting == 'Y') { $rootScope.isModestyOn = true; $rootScope.isModestyOff = false; + $("#modon").prop("checked", true); + $("#modoff").prop("checked", false); + } else { $rootScope.isModestyOn = false; $rootScope.isModestyOff = true; + $("#modon").prop("checked", false); + $("#modoff").prop("checked", true); } } @@ -5942,10 +5953,13 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data } $rootScope.isApplyBtnClicked = false; - $rootScope.CloseSetting = function () { + $rootScope.CancelSetting = function () { $rootScope.isCloseSettingClicked = true; $rootScope.setEthncitySettings($rootScope.globalSetting.ethnicity); $rootScope.setModestySettings($rootScope.globalSetting.modesty); + + + if ($rootScope.isApplyBtnClicked == false) { $rootScope.deSelectLanguageOptions(); @@ -5957,6 +5971,11 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data $('#modal-settings').css("display", "none"); $("#modelsettingsbackground").css("display", "none"); } + $rootScope.CloseSetting = function () { + + $('#modal-settings').css("display", "none"); + $("#modelsettingsbackground").css("display", "none"); + } $rootScope.UpdateAndCloseSetting = function (setting) { -- libgit2 0.21.4