Commit adc79979 by Nilu

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

parent 7889baef
...@@ -27,14 +27,21 @@ ...@@ -27,14 +27,21 @@
}); });
}); });
function copyHTMLToClip(ele) { function copyHTMLToClip(ele, verified) {
var aux = document.createElement("textarea"); var aux = document.createElement("textarea");
aux.value = $(ele).text().trim(); aux.value = $(ele).text().trim();
document.body.appendChild(aux); document.body.appendChild(aux);
aux.select(); aux.select();
document.execCommand("copy"); document.execCommand("copy");
document.body.removeChild(aux); 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> </script>
<div class="view-appli-list"> <div class="view-appli-list">
...@@ -78,6 +85,11 @@ ...@@ -78,6 +85,11 @@
<% <%
} }
if( candidate.getVerificationKey() == null)
{
candidate.setVerificationKey(new RandomStringGen().generateAlphaNum(6));
}
String jobLink = LoopbackHTTP.getRemoteAccessURL() String jobLink = LoopbackHTTP.getRemoteAccessURL()
+ Utils.APPLICANT_LINK + Utils.APPLICANT_LINK
+ "?id=" + job.getID() + "?id=" + job.getID()
...@@ -87,7 +99,7 @@ ...@@ -87,7 +99,7 @@
%> %>
<oneit:toString value="<%= candidate %>" mode="EscapeHTML" /> <oneit:toString value="<%= candidate %>" mode="EscapeHTML" />
<span style="float:right; padding-right: 5px;"> <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"> <img src="images/copy-icon.jpg">
<span style="display:none;" class='<%= jobApplication.getID().toString() + "link"%>'> <span style="display:none;" class='<%= jobApplication.getID().toString() + "link"%>'>
<%= jobLink %> <%= 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