Commit 09f6c6fe by Nilu

S12520521 # Client - Incoming Issues (raised by Client) #DIsable Create Job while creating a job

parent db744969
...@@ -163,6 +163,16 @@ public class WebUtils ...@@ -163,6 +163,16 @@ public class WebUtils
renderMode.equals(CREATED_JOB); renderMode.equals(CREATED_JOB);
} }
public static Boolean onJobPages(String renderMode)
{
return renderMode.equals(CREATE_JOB) ||
renderMode.equals(ASSESSMENT_CRITERIA) ||
renderMode.equals(WORKPLACE_CULTURE) ||
renderMode.equals(JOB_REVIEW) ||
renderMode.equals(START_JOB) ||
renderMode.equals(CREATED_JOB);
}
public static boolean showHeaderFooter(ObjectTransaction objTran, Article article) public static boolean showHeaderFooter(ObjectTransaction objTran, Article article)
{ {
Article accVerificationArticle = getArticleByShortCut(objTran, COMPANY_ACCOUNT_VERIFICATION); Article accVerificationArticle = getArticleByShortCut(objTran, COMPANY_ACCOUNT_VERIFICATION);
......
...@@ -29,6 +29,11 @@ ...@@ -29,6 +29,11 @@
<%@include file="/heapAnalysis.jsp" %> <%@include file="/heapAnalysis.jsp" %>
<%@page import="oneit.servlets.portability.BrowserServices"%> <%@page import="oneit.servlets.portability.BrowserServices"%>
<!-- Google Tag Manager -->
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WFZ4NVT');
</script>
<!-- End Google Tag Manager -->
</head> </head>
<script> <script>
window.intercomSettings = { window.intercomSettings = {
...@@ -62,6 +67,9 @@ ...@@ -62,6 +67,9 @@
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/kqed9h3r';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})() (function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/kqed9h3r';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
</script> </script>
<body> <body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WFZ4NVT" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<% <%
boolean isMobile = BrowserServices.isMobile(request); boolean isMobile = BrowserServices.isMobile(request);
...@@ -108,8 +116,6 @@ ...@@ -108,8 +116,6 @@
$('.change-hiring-team').click(); $('.change-hiring-team').click();
}); });
var toolpop = new jBox('Tooltip', { var toolpop = new jBox('Tooltip', {
attach: '.info-icon', attach: '.info-icon',
pointer: 'right:5' pointer: 'right:5'
...@@ -180,8 +186,9 @@ ...@@ -180,8 +186,9 @@
<div class="create-job-btn"> <div class="create-job-btn">
<% <%
Article jobsArticle = WebUtils.getArticleByShortCut(objTran, WebUtils.JOBS); Article jobsArticle = WebUtils.getArticleByShortCut(objTran, WebUtils.JOBS);
boolean onJob = WebUtils.onJobPages(renderMode);
%> %>
<a href="<%= jobsArticle.getLink(request, CollectionUtils.mapEntry("cms.rm", WebUtils.START_JOB).toMap()) %>" class="disabled">Create Job</a> <a href="<%= onJob ? "#" : jobsArticle.getLink(request, CollectionUtils.mapEntry("cms.rm", WebUtils.START_JOB).toMap()) %>" class="disabled">Create Job</a>
</div> </div>
</div> </div>
</div> </div>
......
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