Commit baf4e580 by Nilu

We need to disable the on hover animation when 'Shortlisted' or 'Unsuitable' is '0'

parent 52efa1a3
...@@ -3360,7 +3360,7 @@ input.add-note-btn:hover{ ...@@ -3360,7 +3360,7 @@ input.add-note-btn:hover{
text-align: center; text-align: center;
font-family: "Usual-Medium"; font-family: "Usual-Medium";
} }
.int-timeline li a:hover { .int-timeline li.has-applicant a:hover {
color: #ffffff; color: #ffffff;
font-size: 11px; font-size: 11px;
background-color: #4e5964; background-color: #4e5964;
...@@ -3445,7 +3445,7 @@ input.add-note-btn:hover{ ...@@ -3445,7 +3445,7 @@ input.add-note-btn:hover{
width: 96px; width: 96px;
font-family: "Usual-Medium"; font-family: "Usual-Medium";
} }
.unsutable a:hover,.unsutable a:hover span{ .unsutable .has-applicant a:hover,.unsutable .has-applicant a:hover span{
color: #ffffff; color: #ffffff;
} }
.unsutable.active a:hover{ .unsutable.active a:hover{
......
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
String firstTab = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS); String firstTab = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS);
String secondTab = WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_SHORTLIST); String secondTab = WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_SHORTLIST);
String thirdTab = WebUtils.getSamePageInRenderMode(request, WebUtils.UNSUITABLE_APPS); String thirdTab = WebUtils.getSamePageInRenderMode(request, WebUtils.UNSUITABLE_APPS);
int noOfShortlisted = job.getNoOfCandidatesShortlisted();
int noOfUnsuitable = job.getNoOfCandidatesUnsuitable();
%> %>
<oneit:dynIncluded> <oneit:dynIncluded>
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/> <oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
...@@ -33,10 +34,7 @@ ...@@ -33,10 +34,7 @@
Applicants Applicants
</oneit:button> </oneit:button>
</li> </li>
<li class="<%= tabNumber == "2" ? "active" : "" %>"> <li class="<%= noOfShortlisted > 0 ? "has-applicant" : "" %> <%= tabNumber == "2" ? "active" : "" %>">
<%
int noOfShortlisted = job.getNoOfCandidatesShortlisted();
%>
<oneit:button value=" " name="gotoPage" skin="link" disabled="<%= noOfShortlisted > 0 ? "false" : "true" %>" <oneit:button value=" " name="gotoPage" skin="link" disabled="<%= noOfShortlisted > 0 ? "false" : "true" %>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondTab) requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondTab)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap()) .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
...@@ -49,11 +47,8 @@ ...@@ -49,11 +47,8 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="unsutable <%= tabNumber == "3" ? "active" : "" %>"> <div class="unsutable <%= noOfUnsuitable > 0 ? "has-applicant" : "" %> <%= tabNumber == "3" ? "active" : "" %>">
<% <oneit:button id="unsuitableBtn" value=" " name="gotoPage" skin="link" disabled="<%= noOfUnsuitable > 0 ? "false" : "true" %>"
int noOfUnsuitable = job.getNoOfCandidatesUnsuitable();
%>
<oneit:button value=" " name="gotoPage" skin="link" disabled="<%= noOfUnsuitable > 0 ? "false" : "true" %>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdTab) requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdTab)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap()) .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>"> .toMap() %>">
......
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