summaryrefslogtreecommitdiff
path: root/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js')
-rwxr-xr-xjs/main.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
new file mode 100755
index 0000000..6e33712
--- /dev/null
+++ b/js/main.js
@@ -0,0 +1,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);