diff options
author | Prashant S | 2016-08-18 16:54:35 +0530 |
---|---|---|
committer | GitHub | 2016-08-18 16:54:35 +0530 |
commit | 5a74f66b6860301999f700c2c1b20edab6934cd0 (patch) | |
tree | fc72d92818c7e76cef8724281d742ebe07fd9592 /js/main.js | |
parent | 7f43918cb4be99642c144f88b0c0e1db92f3bae7 (diff) | |
parent | 487fd19178399df55bfef1efb71b0f79bc14901b (diff) | |
download | job_portal-5a74f66b6860301999f700c2c1b20edab6934cd0.tar.gz job_portal-5a74f66b6860301999f700c2c1b20edab6934cd0.tar.bz2 job_portal-5a74f66b6860301999f700c2c1b20edab6934cd0.zip |
Merge pull request #1 from prashantsinalkar/master
Added text for page
Diffstat (limited to 'js/main.js')
-rwxr-xr-x | js/main.js | 48 |
1 files changed, 23 insertions, 25 deletions
@@ -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); |