Commit 0e8b6a42 by Nilu

C008 - UX-related - Partial reload of screen is distracting and unpleasant - fix…

C008 - UX-related - Partial reload of screen is distracting and unpleasant - fix to slide up the old question
parent e895f25f
......@@ -2068,6 +2068,9 @@ ul.security-level {
padding: 53px 70px 0;
background-color: #fbfbfb;
}
.job-match-questions{
background-color: #fbfbfb;
}
.job-match-buttons{
background-color: #fbfbfb;
}
......
......@@ -102,9 +102,16 @@
return false;
}
$('.job-match-questions').empty();
ajaxProcessAddJQ ("<%= request.getContextPath() %>/extensions/applicantportal/inc/job_match_questions.jsp", '.job-match-questions' , {questionNumber : questionNumber, actualNumber: actualNumber});
ajaxProcessAddJQ ("<%= request.getContextPath() %>/extensions/applicantportal/inc/job_match_questions.jsp", '.job-match-questions' , {questionNumber : questionNumber, actualNumber: actualNumber},
function (theHTML_JQ) {
$( ".job-match-questions" ).after("<div class='job-match-questions'></div>"); //This will add a new element to the DOM
$('.job-match-questions:last').html(theHTML_JQ).hide(); // Add the new HTML to the newly created element and hide it
$(".job-match-questions:first").slideUp();
$(".job-match-questions:last").slideDown();
setTimeout(function(){
$(".job-match-questions:first").remove();
},800);
});
$('.timer').countimer('start');
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment