From 6aa1d9c9b0ca6dfa5e1c9a1738bbec5a9561e706 Mon Sep 17 00:00:00 2001 From: Utkarsh Singh Date: Fri, 17 Mar 2017 15:35:19 +0530 Subject: [PATCH] Committed code. Refs: #15245, 15885 --- 400-SOURCECODE/AIAHTML5.API/Constants/AIAConstants.cs | 2 +- 400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.dll.config | 16 ++-------------- 400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.pdb | Bin 52736 -> 0 bytes 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 24 ++++++++---------------- 400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js | 4 +--- 5 files changed, 12 insertions(+), 34 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.API/Constants/AIAConstants.cs b/400-SOURCECODE/AIAHTML5.API/Constants/AIAConstants.cs index 63f2c5c..6342e8e 100644 --- a/400-SOURCECODE/AIAHTML5.API/Constants/AIAConstants.cs +++ b/400-SOURCECODE/AIAHTML5.API/Constants/AIAConstants.cs @@ -10,7 +10,7 @@ namespace AIAHTML5.API.Constants public const string ERROR_IN_FECTHING_DETAILS = "Error in fecthing details."; public const string USER_NOT_FOUND = "User not found."; public const string MAIL_NOT_SENT = "Mail not sent."; - public const string MAIL_SENT = "Mail has been sent."; + public const string MAIL_SENT = "Mail sent."; } diff --git a/400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.dll.config b/400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.dll.config index b7fca52..92603bf 100644 --- a/400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.dll.config +++ b/400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.dll.config @@ -30,7 +30,7 @@ - - - - - - - - - - - - diff --git a/400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.pdb b/400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.pdb index a978734..77b7823 100644 Binary files a/400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.pdb and b/400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.pdb differ diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index dc5d273..4e011b7 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -3313,30 +3313,22 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic userInfo.emailId = $rootScope.userData.emailId; } - if (userInfo.userMessage != undefined && userInfo.userMessage != '' && userInfo.userMessage != null) { - - AdminService.SendAdminAccessRequestMail(userInfo) + AdminService.SendAdminAccessRequestMail(userInfo) .then(function (result) { - if (result == AdminConstants.MAIL_SENT) { - $("#adminModal").fadeOut(); - $("#adminModal").modal('hide'); - $("adminAccessTextArea").text(''); + if (result == AdminConstants.MAIL_SENT) { + $("#adminModal").fadeOut(); + $("#adminModal").modal('hide'); + $("adminAccessTextArea").text(''); - $rootScope.errorMassage = AdminConstants.ADMIN_ACCESS_REQUEST_SUCCESS; - $("#messageModal").modal('show'); - } + $rootScope.errorMassage = AdminConstants.MAIL_SENT; + $("#messageModal").modal('show'); + } }, function (error) { console.log(' Error in sending mail to admin support = ' + error.statusText); $rootScope.errorMassage = AdminConstants.ERROR_IN_SENDING_MAIL; $("#messageModal").modal('show'); }); - } - else { - $rootScope.errorMassage = AdminConstants.EMPTY_MESSAGE; - $("#spnError").text(AdminConstants.EMPTY_MESSAGE); - - } }; $rootScope.CloseAAModal = function () { diff --git a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js index 1f04cc1..f4a4f10 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js @@ -311,10 +311,8 @@ AIA.constant("LoginMessageConstants", { }) AIA.constant("AdminConstants", { - "ADMIN_ACCESS_REQUEST_SUCCESS": "Mail has been sent to referenced authority.", - "EMPTY_MESSAGE": "Please, type some message before submitting.", "ERROR_IN_SENDING_MAIL": "Some internal error occured.", - "MAIL_SENT": "Mail has been sent." + "MAIL_SENT": "Mail sent." }) AIA.constant("UserTypeConstants", { "SUPER_ADMIN": "Super Admin", -- libgit2 0.21.4