From 69b8031a6210c0cd67d14b2d9dfbd79ee4f4020d Mon Sep 17 00:00:00 2001 From: "Yates, Elliott" Date: Fri, 19 Aug 2016 11:10:31 -0400 Subject: [PATCH] course selection redirect fixed for prod; also enables course selection js/css build (removes .hold) --- css/{shop.css.hold => shop.css} | 0 js/{shop.js.hold => shop.js} | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) rename css/{shop.css.hold => shop.css} (100%) rename js/{shop.js.hold => shop.js} (97%) diff --git a/css/shop.css.hold b/css/shop.css similarity index 100% rename from css/shop.css.hold rename to css/shop.css diff --git a/js/shop.js.hold b/js/shop.js similarity index 97% rename from js/shop.js.hold rename to js/shop.js index 449251c..922a513 100644 --- a/js/shop.js.hold +++ b/js/shop.js @@ -1,5 +1,11 @@ var huCourseSelection = (function (){ var currentEnvironment='prod'; + var courseSelectionToolSubdomainByEnvironment = { + dev: '.dev', + qa: '.qa', + stage: '.stage', + prod: '' + }; var devProspectiveEnrolleeRoleId = '11'; var prospectiveEnrolleeRoleIdByEnvironment = { dev: devProspectiveEnrolleeRoleId, @@ -30,7 +36,7 @@ var huCourseSelection = (function (){ prod: ['68'] }; - var courseSelectionToolUrl = 'https://icommons-tools.' + currentEnvironment + '.tlt.harvard.edu/course_selection/'; + var courseSelectionToolUrl = 'https://icommons-tools' + courseSelectionToolSubdomainByEnvironment[currentEnvironment] + '.tlt.harvard.edu/course_selection/'; var prospectiveEnrolleeRoleId = prospectiveEnrolleeRoleIdByEnvironment[currentEnvironment]; var enrolledStudentRoleIds = enrolledStudentRoleIdsByEnvironment[currentEnvironment]; var allowed_terms = allowedTermsByEnvironment[currentEnvironment];