Commit 1bdf59f0 by Nilu

S26222505 # Client - Incoming Issues (raised by Client) #Change terminology

parent e30b2291
...@@ -62,6 +62,9 @@ ...@@ -62,6 +62,9 @@
var interval ; var interval ;
$(document).ready(function() { $(document).ready(function() {
recalcFunction = setupRecalc ($("form#signIn"), {'recalcOnError':true}); recalcFunction = setupRecalc ($("form#signIn"), {'recalcOnError':true});
$(".fileLink").hide();
interval = setInterval(function() { validate(); }, 500); interval = setInterval(function() { validate(); }, 500);
validate(); validate();
$('input').on('change keyup', function() { validate(); }); $('input').on('change keyup', function() { validate(); });
...@@ -101,7 +104,12 @@ ...@@ -101,7 +104,12 @@
$("input:file").change(function (){ $("input:file").change(function (){
var fullPath = $(this).val(); var fullPath = $(this).val();
var filename = fullPath.replace(/^.*[\\\/]/, ''); var filename = fullPath.replace(/^.*[\\\/]/, '');
$(this).parents(".form-control").append(filename);
if (filename)
{
$(this).parents(".fileInput").siblings(".new-file-link").text(filename);
$(this).parents(".fileInput").siblings(".new-file-link").removeAttr("href");
}
}); });
}); });
</script> </script>
...@@ -185,16 +193,22 @@ ...@@ -185,16 +193,22 @@
<div class="form-group text-left relative-parent "> <div class="form-group text-left relative-parent ">
<label>Upload your CV</label> <label>Upload your CV</label>
<div class="form-control second-style"> <div class="form-control second-style">
<oneit:ormInput obj="<%= jobApplication %>" type="file" attributeName="CV" cssClass="hide"/> <a target='blank' class="new-file-link" href='<%= request.getContextPath() + "/" + BinaryContentHandler.getRelativeURL(request, jobApplication, "CV", jobApplication.getCV(), true) %>'>
<div class="attach-icon-btn"></div> <%= jobApplication.getCV() != null ? "Click to View File" : "" %>
</a>
<oneit:ormInput obj="<%= jobApplication %>" type="file" attributeName="CV" cssClass="hide"/>
<div class="attach-icon-btn"></div>
</div> </div>
</div> </div>
<div class="form-group text-left relative-parent"> <div class="form-group text-left relative-parent">
<label>Upload your Cover Letter</label> <label>Upload your Cover Letter</label>
<div class="form-control second-style"> <div class="form-control second-style">
<oneit:ormInput obj="<%= jobApplication %>" type="file" attributeName="CoverLetter" cssClass="hide"/> <a target='blank' class="new-file-link" href='<%= request.getContextPath() + "/" + BinaryContentHandler.getRelativeURL(request, jobApplication, "CoverLetter", jobApplication.getCoverLetter(), true) %>'>
<div class="attach-icon-btn"></div> <%= jobApplication.getCoverLetter() != null ? "Click to View File" : "" %>
</div> </a>
<oneit:ormInput obj="<%= jobApplication %>" type="file" attributeName="CoverLetter" cssClass="hide"/>
<div class="attach-icon-btn"></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