blob: 1f1610d644e345436ae7d41bf816af13e6e96354 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
(function ($) {
$(document).ready(function() {
var basePath = Drupal.settings.basePath;
var modPath = basePath + "jobs/";
$shortlist = $(".shortlist");
$shortlist.click(function (e) {
$(".sync-msg").remove();
$(this).after("<span class='sync-msg'>Saving...</span>");
$.ajax({
url: modPath + "ajax/shortlist/" + $(this).data("aid"),
success: function() {
$(".sync-msg").remove();
console.log("success");
}
});
});
$(this).on('click','#d_app',function (e){
if($shortlist.prop("checked") == false){
alert("Please select atleast one resume for download");
e.preventDefault();
}
console.log('####');
});
});
})(jQuery);
|