summaryrefslogtreecommitdiff
path: root/js/main.js
blob: 6cf7da07a3ca7bb39e17050bd883b58b1afed5c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$(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");
            }
        });
    });
});