summaryrefslogtreecommitdiff
path: root/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js')
-rwxr-xr-xjs/main.js48
1 files changed, 23 insertions, 25 deletions
diff --git a/js/main.js b/js/main.js
index 1f1610d..6e653b0 100755
--- a/js/main.js
+++ b/js/main.js
@@ -1,27 +1,25 @@
(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('####');
- });
-});
+ $(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);