summaryrefslogtreecommitdiff
path: root/js/main.js
blob: 6e33712280b48e16eccb9f8316015e8ba4969fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(function($) {
$(document).ready(function() {
    var basePath = Drupal.settings.basePath;
    var modPath = basePath + "conference_proposal/";

    $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");
            }
        });
    });
});
})(jQuery);