Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
687a78f4
Commit
687a78f4
authored
Aug 31, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix browser back issue in culture and role test.
parent
43cc67f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletions
+42
-1
job_match_assessment.jsp
...broot/extensions/applicantportal/job_match_assessment.jsp
+26
-0
workplace_culture.jsp
.../webroot/extensions/applicantportal/workplace_culture.jsp
+16
-1
No files found.
cmsWebApp/webroot/extensions/applicantportal/job_match_assessment.jsp
View file @
687a78f4
...
@@ -31,6 +31,32 @@
...
@@ -31,6 +31,32 @@
process.setAttribute("AllQuestions", allQuestions);
process.setAttribute("AllQuestions", allQuestions);
}
}
//to store current question number in history
if(process.getAttribute("QuestionNumber")==null || process.getAttribute("ActualNumber")==null)
{
request.getSession().setAttribute ("historyQstNo", null);
request.getSession().setAttribute ("historyActualNo", null);
}
if(request.getSession().getAttribute("historyQstNo")!=null && process.getAttribute("QuestionNumber")!= null)
{
if((int) process.getAttribute("QuestionNumber") <= (int) request.getSession().getAttribute("historyQstNo"))
{
questionNumber = (int) request.getSession().getAttribute("historyQstNo");
}
}
if(request.getSession().getAttribute("historyActualNo")!=null && process.getAttribute("ActualNumber")!= null)
{
if((int) process.getAttribute("ActualNumber") <= (int) request.getSession().getAttribute("historyActualNo"))
{
actualNumber = (int) request.getSession().getAttribute("historyActualNo");
}
}
request.getSession().setAttribute ("historyQstNo", questionNumber);
request.getSession().setAttribute ("historyActualNo", actualNumber);
boolean toRedirect = jobApplication.initAssessmentAnswers(allQuestions);
boolean toRedirect = jobApplication.initAssessmentAnswers(allQuestions);
...
...
cmsWebApp/webroot/extensions/applicantportal/workplace_culture.jsp
View file @
687a78f4
...
@@ -14,9 +14,22 @@
...
@@ -14,9 +14,22 @@
int cultureQuestionNo = process.getAttribute("CultureQuestionNo")!= null ? (int) process.getAttribute("CultureQuestionNo") : candidate.getCultureCriteriaAnswersCount();
int cultureQuestionNo = process.getAttribute("CultureQuestionNo")!= null ? (int) process.getAttribute("CultureQuestionNo") : candidate.getCultureCriteriaAnswersCount();
String exitPage = WebUtils.getArticleLink(request, objTran, WebUtils.APPLY_JOB, "Page") + "&id=" + job.getID() + "&key=" + job.getRandomKey();
String exitPage = WebUtils.getArticleLink(request, objTran, WebUtils.APPLY_JOB, "Page") + "&id=" + job.getID() + "&key=" + job.getRandomKey();
boolean toRedirect = jobApplication.createCultureCriteriaObjects();
boolean toRedirect = jobApplication.createCultureCriteriaObjects();
// Boolean alreadyCompletedRole = (Boolean) process.getAttribute("AlreadyCompletedRole");
Boolean isAssesmentComplete = jobApplication.assessmentCompleted();
Boolean isAssesmentComplete = jobApplication.assessmentCompleted();
//to store current question number in history
if(process.getAttribute("CultureQuestionNo")==null)
{
request.getSession().setAttribute ("historyQuestionNo", null);
}
if(request.getSession().getAttribute("historyQuestionNo")!=null && process.getAttribute("CultureQuestionNo")!= null)
{
if((int) process.getAttribute("CultureQuestionNo")<=(int) request.getSession().getAttribute("historyQuestionNo"))
{
cultureQuestionNo = (int) request.getSession().getAttribute("historyQuestionNo");
}
}
if(isAssesmentComplete)
if(isAssesmentComplete)
{
{
nextPage = WebUtils.getSamePageInRenderMode(request, "SubmitApplication");
nextPage = WebUtils.getSamePageInRenderMode(request, "SubmitApplication");
...
@@ -41,6 +54,8 @@
...
@@ -41,6 +54,8 @@
String numberText = (cultureQuestionNo + 1) + "/" + total;
String numberText = (cultureQuestionNo + 1) + "/" + total;
process.setAttribute("JobApplication", jobApplication);
process.setAttribute("JobApplication", jobApplication);
request.getSession().setAttribute ("historyQuestionNo", cultureQuestionNo);
%>
%>
<script>
<script>
$(document.body).addClass('bg-color');
$(document.body).addClass('bg-color');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment