summaryrefslogtreecommitdiff
path: root/js/main.js
diff options
context:
space:
mode:
authorprashant2015-06-30 11:09:24 +0530
committerprashant2015-06-30 11:09:24 +0530
commit575c131a16d2f29956fef1aff7d878f3d0645a83 (patch)
treef032f4f5a9b57b9b5e9d20ac732b925a663eac9c /js/main.js
downloadFOSSEE_Stats-575c131a16d2f29956fef1aff7d878f3d0645a83.tar.gz
FOSSEE_Stats-575c131a16d2f29956fef1aff7d878f3d0645a83.tar.bz2
FOSSEE_Stats-575c131a16d2f29956fef1aff7d878f3d0645a83.zip
Initial commit
Diffstat (limited to 'js/main.js')
-rwxr-xr-xjs/main.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
new file mode 100755
index 0000000..47e8925
--- /dev/null
+++ b/js/main.js
@@ -0,0 +1,28 @@
+$(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('####');
+
+ });
+
+});