blob: 47e8925c67cf56e6851e47c4b476e583b239e5c8 (
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
28
|
$(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('####');
});
});
|