Commit adc79979 by Nilu

S31489017 # Client - Incoming Issues (raised by Client) #Wrong destination for applicant URL

parent 7889baef
......@@ -27,14 +27,21 @@
});
});
function copyHTMLToClip(ele) {
function copyHTMLToClip(ele, verified) {
var aux = document.createElement("textarea");
aux.value = $(ele).text().trim();
document.body.appendChild(aux);
aux.select();
document.execCommand("copy");
document.body.removeChild(aux);
alert("link copied to clipboard");
if(verified)
{
alert("link copied to clipboard");
}
else
{
alert("This applicant's email address is not verified. If the email address is wrong, further messages cannot be sent. \nLink copied to clipboard");
}
};
</script>
<div class="view-appli-list">
......@@ -78,6 +85,11 @@
<%
}
if( candidate.getVerificationKey() == null)
{
candidate.setVerificationKey(new RandomStringGen().generateAlphaNum(6));
}
String jobLink = LoopbackHTTP.getRemoteAccessURL()
+ Utils.APPLICANT_LINK
+ "?id=" + job.getID()
......@@ -87,7 +99,7 @@
%>
<oneit:toString value="<%= candidate %>" mode="EscapeHTML" />
<span style="float:right; padding-right: 5px;">
<a style="float:right; padding-right: 10px;" onclick="copyHTMLToClip('.<%= jobApplication.getID().toString() + "link"%>')">
<a style="float:right; padding-right: 10px;" onclick="copyHTMLToClip('.<%= jobApplication.getID().toString() + "link"%>', <%= candidate.getIsAccountVerified()%>)">
<img src="images/copy-icon.jpg">
<span style="display:none;" class='<%= jobApplication.getID().toString() + "link"%>'>
<%= jobLink %>
......
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