summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/main.js48
-rwxr-xr-xjs/main.js~26
-rwxr-xr-xjs/smooth_scroll.js47
-rwxr-xr-xjs/smooth_scroll.js~25
4 files changed, 97 insertions, 49 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);
diff --git a/js/main.js~ b/js/main.js~
new file mode 100755
index 0000000..18168e7
--- /dev/null
+++ b/js/main.js~
@@ -0,0 +1,26 @@
+(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('####');
+ });
+ });
+})(jQuery);
+
diff --git a/js/smooth_scroll.js b/js/smooth_scroll.js
index d16dc1a..10e9145 100755
--- a/js/smooth_scroll.js
+++ b/js/smooth_scroll.js
@@ -1,26 +1,25 @@
(function($) {
- $(document).ready(function() {
- $('a[href*=#]:not([href=#])').click(function() {
- if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
- || location.hostname == this.hostname) {
-
- var target = $(this.hash);
- target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
- if (target.length) {
- $('html,body').animate({
- scrollTop: target.offset().top
- }, 1000);
- return false;
- }
- }
- });
- $(".quick").click(function() {
- $(".quick").removeClass("badge-success");
- $(this).addClass("badge-success");
- setTimeout(function() {
- $(".quick").removeClass("badge-success");
- }, 4000);
- });
- $('.quick').tooltip();
- });
+ $(document).ready(function() {
+ $('a[href*=#]:not([href=#])').click(function() {
+ if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
+ || location.hostname == this.hostname) {
+ var target = $(this.hash);
+ target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
+ if (target.length) {
+ $('html,body').animate({
+ scrollTop: target.offset().top
+ }, 1000);
+ return false;
+ }
+ }
+ });
+ $(".quick").click(function() {
+ $(".quick").removeClass("badge-success");
+ $(this).addClass("badge-success");
+ setTimeout(function() {
+ $(".quick").removeClass("badge-success");
+ }, 4000);
+ });
+ //$('.quick').tooltip();
+ });
})(jQuery);
diff --git a/js/smooth_scroll.js~ b/js/smooth_scroll.js~
new file mode 100755
index 0000000..10e9145
--- /dev/null
+++ b/js/smooth_scroll.js~
@@ -0,0 +1,25 @@
+(function($) {
+ $(document).ready(function() {
+ $('a[href*=#]:not([href=#])').click(function() {
+ if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
+ || location.hostname == this.hostname) {
+ var target = $(this.hash);
+ target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
+ if (target.length) {
+ $('html,body').animate({
+ scrollTop: target.offset().top
+ }, 1000);
+ return false;
+ }
+ }
+ });
+ $(".quick").click(function() {
+ $(".quick").removeClass("badge-success");
+ $(this).addClass("badge-success");
+ setTimeout(function() {
+ $(".quick").removeClass("badge-success");
+ }, 4000);
+ });
+ //$('.quick').tooltip();
+ });
+})(jQuery);