Created
October 5, 2017 20:05
-
-
Save philipusis/f926794aa93c2743806d47f7a54edfa4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="recruitment-block" style="width: 38%;"> | |
@using (Ajax.BeginForm("ApplicantPartial", null, new AjaxOptions {HttpMethod = "GET", UpdateTargetId = "applicant"}, new {id = "applicantsForm"})) | |
{ | |
@Html.Hidden("selectedVacancyId") | |
@Html.Hidden("selectedApplicantId") | |
<script type="text/javascript"> | |
function SearchApplicants() { | |
var search = $("#searchApplicants").val(); | |
$("#applicants .recruitment-block__applicant-item").show(); | |
if (search.length > 0) { | |
$("#applicants .recruitment-block__applicant-item").not("[data-item*='" + search + "']").hide(); | |
} | |
} | |
</script> | |
<div id="applicants"> | |
@Html.Action("ApplicantsPartial", new { selectedApplicantId = Model.SelectedApplicantId }) | |
</div> | |
} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment