1jQuery(document).on('click', '.jobsearch-activate-pdf-template', function () { 2 var _this = jQuery(this), _template = _this.attr('data-template'), _loader_html; 3 _loader_html = '<div class="jobsearch-candidate-pdf-locked pdf-loader"><a href="javascript:void(0)" class="fa fa-refresh fa-spin"></a></div>'; 4 _this.after(_loader_html); 5 jQuery(".jobsearch-candidate-pdf-list").find("figcaption").remove(); 6 // 7 var request = jQuery.ajax({ 8 url: jobsearch_plugin_vars.ajax_url, 9 method: "POST", 10 data: { 11 template_name: _template, 12 action: 'jobsearch_user_pdf_type_save', 13 }, 14 dataType: "json" 15 }); 16 request.done(function (response) { 17 if (typeof response.res !== 'undefined' && response.res == true) { 18 _this.after('<figcaption>' + jobsearch_export_vars.active + '</figcaption>'); 19 jQuery(document).find(".pdf-loader").remove(); 20 } 21 }); 22 request.fail(function (jqXHR, textStatus) { 23 console.info(textStatus); 24 }); 25}); 26 27jQuery(document).on('click', '.jobsearch-subscribe-pdf-pkg', function () { 28 29 var _this = jQuery(this), 30 this_id = _this.attr('data-id'), 31 this_loader = jQuery(this).next('.pkg-loding-msg'); 32 33 this_loader.html('<i class="fa fa-refresh fa-spin"></i>'); 34 this_loader.show(); 35 var request = jQuery.ajax({ 36 url: jobsearch_plugin_vars.ajax_url, 37 method: "POST", 38 data: { 39 pkg_id: this_id, 40 action: 'jobsearch_user_pdf_pckg_subscribe', 41 }, 42 dataType: "json" 43 }); 44 45 request.done(function (response) { 46 if (typeof response.error !== 'undefined' && response.error == '1') { 47 // 48 this_loader.html(response.msg); 49 return false; 50 } 51 if (typeof response.msg !== 'undefined' && response.msg != '') { 52 this_loader.html(response.msg); 53 } 54 if (typeof response.redirect_url !== 'undefined' && response.redirect_url != '') { 55 window.location.replace(response.redirect_url); 56 return false; 57 } 58 }); 59 60 request.fail(function (jqXHR, textStatus) { 61 this_loader.html(jobsearch_packages_vars.error_msg); 62 }); 63});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.