Home | StyleCareers.com


Home | StyleCareers.com <]+) | /g, rep: '$1'}, {find:/([^|><()]+) (()/g, rep: '$1$2'}, {find:/([^|><()]+)$/g, rep: '$1'}, {find:/(([^|><]+))$/g, rep: '$1'} ]; for(var i in findreps){ newText = newText.replace(findreps[i].find, findreps[i].rep); } return newText; } /* $('#apply_for_job_guest_cover_textarea,#apply_for_job_guest_resume_id,#apply_for_job_guest_cover_id,#apply_for_job_guest_cover_textarea,#apply_for_job_guest_resume_textarea_right,#apply_for_job_guest_resume_textarea_right,div.apply_save_for_future').css('display', 'none'); if ($("#confirm_cover_letter_1,#apply_for_job_guest_cover_textarea").is(":checked")) { $('#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_id,div.apply_save_for_future_cover').css('display', 'block'); }*/ $("#confirm_cover_letter_1,#apply_for_job_guest_cover_textarea").click(function(){ // If checked /*if ($("#confirm_cover_letter_1,#apply_for_job_guest_cover_textarea").is(":checked")) { $('#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_id,div.apply_save_for_future_cover').css('display', 'block'); } else { $('#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_id,div.apply_save_for_future_cover').css('display', 'none'); }*/ }); //dirty code // Add onclick handler to checkbox w/id checkme $("input[name$='apply_f']").click(function(){ var radio_value = $(this).val(); if(radio_value=='1') { $('#apply_for_job_guest_resume_textarea_right').css('display', 'block'); /*$('#apply_for_job_guest_resume_upload_right').css('display', 'none');*/ /*$('#apply_for_job_guest_resume_id').css('display', 'none');*/ $('div.apply_save_for_future_text').css('display', 'block'); $('div.apply_save_for_future_file').css('display', 'none'); } if (radio_value=='2') { $('#apply_for_job_guest_resume_textarea_right').css('display', 'none'); /*$('#apply_for_job_guest_resume_upload_right').css('display', 'block');*/ /*$('#apply_for_job_guest_resume_id').css('display', 'none');*/ $('div.apply_save_for_future_text').css('display', 'none'); $('div.apply_save_for_future_file').css('display', 'block'); } /* if (radio_value=='3') { $('#apply_for_job_guest_resume_textarea_right').css('display', 'none'); $('#apply_for_job_guest_resume_upload_right').css('display', 'none'); $('#apply_for_job_guest_resume_id').css('display', 'block'); $('div.apply_save_for_future_text').css('display', 'none'); $('div.apply_save_for_future_file').css('display', 'none'); }*/ }); //now "clicked" the selected button so that the right section gets displayed $("input[name$='apply_f']:checked").click(); /*$("#confirm_cover_letter_1,apply_for_job_guest_cover_textarea").click(function(){ // If checked if ($("#confirm_cover_letter_1,#apply_for_job_guest_cover_textarea").is(":checked")) { $('#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_id').css('display', 'block'); } else { $('#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_textarea,#apply_for_job_guest_cover_id').css('display', 'none'); } });*/ ///////////////////////////////////////////////// // view_applicant // ///////////////////////////////////////////////// $('div.view_applicant_tab,div.view_applicant_tab a').click(function(e) { // Prevent default hyperlink action. e.preventDefault(); var obj = ($(this).hasClass('view_applicant_tab')) ? $(this).find('a') : $(this); // This regexp pattern will be used to get tabs indices. var number_pattern = /[0-9]+/; // Get clicked tab. var clicked_tab = obj.parent(); var clicked_tab_idx = parseInt($(clicked_tab).attr('class').match(number_pattern)[0]); // Get currently active tab. var currently_active = $('div.view_applicant_tabs_box').find('div.view_applicant_tab.view_profile_tab_active'); var currently_active_idx = parseInt($(currently_active).attr('class').match(number_pattern)[0]); console.log('__currently_active_idx', currently_active_idx); // Proceed only when we have indices. if ((!isNaN(clicked_tab_idx)) && (!isNaN(currently_active_idx))) { // Hide currently active tab. $(currently_active).removeClass('view_profile_tab_active'); $('div.view_applicant_content_box.view_applicant_content_box' + currently_active_idx). removeClass('view_applicant_content_box_active'); // Show the clicked tab. $(clicked_tab).addClass('view_profile_tab_active'); $('div.view_applicant_content_box.view_applicant_content_box' + clicked_tab_idx). addClass('view_applicant_content_box_active'); if (clicked_tab_idx == 1) { $('div.view_applicant_content_box1 table.search_res input[name=resume_radio]:checked').first().trigger('click'); } } }); $('div.view_applicant_inner_tab a').click(function(e) { // Prevent default hyperlink action. e.preventDefault(); // This regexp pattern will be used to get tabs indices. var number_pattern = /[0-9]+/; // Get clicked tab. var clicked_tab = $(this).parent(); var clicked_tab_idx = parseInt($(clicked_tab).attr('class').match(number_pattern)[0]); // Get currently active tab. var currently_active = $('div.view_applicant_tabs_inner_box').find('div.view_tab_inner_active'); var currently_active_idx = parseInt($(currently_active).attr('class').match(number_pattern)[0]); // Proceed only when we have indices. if ((!isNaN(clicked_tab_idx)) && (!isNaN(currently_active_idx))) { // Hide currently active tab. $(currently_active).removeClass('view_tab_inner_active'); $('div.view_tab_content.view_tab_inner_content' + currently_active_idx). removeClass('view_tab_content_active'); // Show the clicked tab. $(clicked_tab).addClass('view_tab_inner_active'); $('div.view_tab_content.view_tab_inner_content' + clicked_tab_idx). addClass('view_tab_content_active'); } }); $('select[name^=applicant_status]').bind('change', function(e,ignore) { if ( typeof ignore === "undefined" ) { // Get the selected option. var selected_option = $(this).find(':selected'); // Get apply log id from the name. var idx = parseInt($(this).attr('name').match(/[0-9]+/)[0]); if ((!isNaN(idx)) && (selected_option.attr('value') != '')) { // Launch an AJAX call to update status. view_applicant_update_status(selected_option.attr('value'), idx); } } }); $('select.applicant_rating').rating({showCancel: false, cancelValue: null, startValue: null, showTarget: true, emptyUiValue: ""}); $('select.applicant_rating_no_text').rating({showCancel: false, cancelValue: null, startValue: null, showTarget: false, disabled: true}); $('select.rating_dropdown_view_my_job').rating({showCancel: true, cancelValue: null, startValue: null, showTarget: false}); $('select.applicant_rating').bind('change', function() { // Get log id from the name. var idx = parseInt($(this).attr('name').match(/[0-9]+/)[0]); // Get the feedback. var feedback = $(this).val(); if ((!isNaN(idx)) && (feedback != '')) { // Launch an AJAX call to update feedback. view_applicant_update_feedback(feedback, idx); } }); $('div.view_applicant_jobs_table_view_feedback a').click(function(e) { // Find the table row to collapse/expand. var table_row = $('tr#' + $(this).attr('class')); if ($(table_row).css('display') != 'none') { $(table_row).slideUp('fast'); $(table_row).find('td.cntrn div').slideUp('fast'); $(table_row).find('td.cntrn div a[name^=close_feedback]').css('display', 'none'); } else { $(table_row).slideDown('fast'); $(table_row).find('td.cntrn div').slideDown('fast'); $(table_row).find('td.cntrn div a[class^=close_feedback]').css('display', 'inline-block'); } e.stopImmediatePropagation(); return false; }); $('a[class^=close_feedback]').click(function(e) { // Get feedback id from the class. var idx = parseInt($(this).attr('class').match(/[0-9]+/)[0]); var table_row = $('tr#view_feedback_' + idx); $(table_row).slideUp('fast'); $(table_row).find('td.cntrn div').slideUp('fast'); $(table_row).find('td.cntrn div a[name^=close_feedback]').css('display', 'none'); return false; }); $('div.view_applicant_content_box1 table.search_res input[name=resume_radio]').bind('click', function(e) { view_applicant_switch_resume_radio($(this), false); }); // Pre-select the first resume_radio radio button. if ((!$.data(document.body, 'foo')) || ($.data(document.body, 'foo') != "bar")) { $('div.view_applicant_content_box1 table.search_res input[name=resume_radio]').each(function () { $(this).prop('checked', false); }); $('div.view_applicant_content_box1 table.search_res input[name=resume_radio]') .first() .prop('checked', true); view_applicant_switch_resume_radio($('div.view_applicant_content_box1 table.search_res input[name=resume_radio]').eq(0), true); } //view_applicant_switch_tab_pagination(); // see common.js ///////////////////////////////////////////////// // view_my_job // ///////////////////////////////////////////////// $('div.view_my_job_tab,div.view_my_job_tab a').click(function(e) { // Prevent default hyperlink action. e.preventDefault(); var obj = ($(this).hasClass('view_my_job_tab')) ? $(this).find('a') : $(this); // This regexp pattern will be used to get tabs indices. var number_pattern = /[0-9]+/; // Get clicked tab. var clicked_tab = obj.parent(); var clicked_tab_idx = parseInt($(clicked_tab).attr('class').match(number_pattern)[0]); // Get currently active tab. var currently_active = $('div.view_my_job_tabs_box').find('div.view_my_job_tab.view_details_tab_active'); var currently_active_idx = parseInt($(currently_active).attr('class').match(number_pattern)[0]); // Proceed only when we have indices. if ((!isNaN(clicked_tab_idx)) && (!isNaN(currently_active_idx))) { // Hide currently active tab. $(currently_active).removeClass('view_details_tab_active'); $('div.view_my_job_content_box.view_my_job_content_box' + currently_active_idx). removeClass('view_my_job_content_box_active'); // Show the clicked tab. $(clicked_tab).addClass('view_details_tab_active'); $('div.view_my_job_content_box.view_my_job_content_box' + clicked_tab_idx). addClass('view_my_job_content_box_active'); // Init the chart if we're on the "Statistics" tab. if (clicked_tab_idx == 3) { init_applicant_flow_chart(); } } return false; }); // Check if we have "view_statistics" and "view_my_job" in the location string. If so, init the chart. var view_my_job_loc = window.location.href.toLowerCase(); if ((view_my_job_loc.indexOf('view_statistics') != -1) && (view_my_job_loc.indexOf('view_my_job') != -1)) { init_applicant_flow_chart(); } $('input[name=post_job_button_submit]').click(function() { //console.log('here'); document.post_single_job1.submit(); return false; }); ///////////////////////////////////////////////// // search // ///////////////////////////////////////////////// $('form#advanced_search input#keywords').autocomplete({ serviceUrl: 'ajax.php', minChars: 1, width: 250, params: { page: 'index', action: 'get_keywords' }, deferRequestBy: 10, delimiter: ",", }); ///////////////////////////////////////////////// // index // ///////////////////////////////////////////////// $('form[name=quicksearch] input[name=keywords]').autocomplete({ serviceUrl: 'ajax.php', minChars: 1, width: 250, params: { page: 'index', action: 'get_keywords' }, deferRequestBy: 10, delimiter: ",", }); $('form[name=quicksearch] input[name=city_state_zip]').autocomplete({ serviceUrl: 'ajax.php', minChars: 1, width: 250, params: { page: 'index', action: 'get_locations' }, deferRequestBy: 10, delimiter: ",", }); ///////////////////////////////////////////////// // publishers // ///////////////////////////////////////////////// $('form#jobs_widget input.color, form#search_widget input.color').spectrum({ showPalette: true, chooseText: "", cancelText: "", palette: [ ["rgb(0, 0, 0)", "rgb(67, 67, 67)", "rgb(102, 102, 102)", "rgb(204, 204, 204)", "rgb(217, 217, 217)","rgb(255, 255, 255)"], ["rgb(152, 0, 0)", "rgb(255, 0, 0)", "rgb(255, 153, 0)", "rgb(255, 255, 0)", "rgb(0, 255, 0)", "rgb(0, 255, 255)", "rgb(74, 134, 232)", "rgb(0, 0, 255)", "rgb(153, 0, 255)", "rgb(255, 0, 255)"], ["rgb(230, 184, 175)", "rgb(244, 204, 204)", "rgb(252, 229, 205)", "rgb(255, 242, 204)", "rgb(217, 234, 211)", "rgb(208, 224, 227)", "rgb(201, 218, 248)", "rgb(207, 226, 243)", "rgb(217, 210, 233)", "rgb(234, 209, 220)", "rgb(221, 126, 107)", "rgb(234, 153, 153)", "rgb(249, 203, 156)", "rgb(255, 229, 153)", "rgb(182, 215, 168)", "rgb(162, 196, 201)", "rgb(164, 194, 244)", "rgb(159, 197, 232)", "rgb(180, 167, 214)", "rgb(213, 166, 189)", "rgb(204, 65, 37)", "rgb(224, 102, 102)", "rgb(246, 178, 107)", "rgb(255, 217, 102)", "rgb(147, 196, 125)", "rgb(118, 165, 175)", "rgb(109, 158, 235)", "rgb(111, 168, 220)", "rgb(142, 124, 195)", "rgb(194, 123, 160)", "rgb(166, 28, 0)", "rgb(204, 0, 0)", "rgb(230, 145, 56)", "rgb(241, 194, 50)", "rgb(106, 168, 79)", "rgb(69, 129, 142)", "rgb(60, 120, 216)", "rgb(61, 133, 198)", "rgb(103, 78, 167)", "rgb(166, 77, 121)", "rgb(91, 15, 0)", "rgb(102, 0, 0)", "rgb(120, 63, 4)", "rgb(127, 96, 0)", "rgb(39, 78, 19)", "rgb(12, 52, 61)", "rgb(28, 69, 135)", "rgb(7, 55, 99)", "rgb(32, 18, 77)", "rgb(76, 17, 48)"] ] }); $('form#jobs_widget input[name=location], form#rss_widget input[name=location]').autocomplete({ serviceUrl: 'ajax.php', minChars: 1, width: 250, params: { page: 'index', action: 'get_locations' }, deferRequestBy: 10, delimiter: ",", }); $('form#jobs_widget input[name=keywords], form#rss_widget input[name=keywords]').autocomplete({ serviceUrl: 'ajax.php', minChars: 1, width: 250, params: { page: 'index', action: 'get_keywords' }, deferRequestBy: 10, delimiter: ",", }); ///////////////////////////////////////////////// // view_job // ///////////////////////////////////////////////// $('div.lin_person_check input[name=lin_widget_check]').live('click', function() { // Check how many checked checkboxes there are (deffo too many "checks" in the last sentence). var checked_cnt = $('div.lin_person_check input[type=checkbox]:checked').length; if (checked_cnt > 0) { $(‘a#linwidget_send span.title_no_logo’).removeClass(‘disabled’); } else { $(‘a#linwidget_send span.title_no_logo’).addClass(‘disabled’); } }); $(‘a#fbwidget_send’).click(function(e) { e.preventDefault(); // If the button is disabled, stop executing this function. if ($(this).hasClass(‘disabled’)) { return; } $(“div.fb_widget_cntrn”).css(“display”, “none”); // Display colorbox. $.colorbox({ inline: true, href: “div.fb_widget_msg_form_container”, width: 555, title: “”, arrowKey: false, overlayClose: false, close: false, onLoad: function() { // Get users to whom we want to send the message. var user_ids = ”; $(‘div.fb_person input[name=fb_widget_check]:checked’).each(function() { user_ids += $(this).attr(‘value’) + ‘;’; }); $(‘input#msg_uids’).attr(‘value’, user_ids); $(‘div.fb_widget_msg_form_container div.loading_img’).css(‘display’, ‘none’); $(‘div.fb_widget_msg_form_container div.form_code’).css(‘display’, ‘block’); $(‘div.fb_widget_msg_form_container’).css(‘display’, ‘block’); }, onCleanup: function() { $(‘input#msg_uids’).attr(‘value’, ”); $(‘div.fb_widget_msg_form_container’).css(‘display’, ‘none’); $.colorbox.resize(); }, onClosed: function() { //$(‘a#btn_send_message’).trigger(‘click’); }, onComplete: function() { $.colorbox.resize(); } }); $(“div.fb_widget_cntrn”).css(“display”, “block”); }); $(‘a#linwidget_send’).click(function(e) { e.preventDefault(); // If the button is disabled, stop execution. if ($(this).children(‘span.title_no_logo’).hasClass(‘disabled’)) { return; } // Display colorbox. $.colorbox({ inline: true, href: “div.lin_widget_msg_form_container”, width: 555, title: “”, arrowKey: false, overlayClose: false, close: false, onLoad: function() { // Get users to whom we want to send the message. var user_ids = ”; $(‘div.lin_person input[name=lin_widget_check]:checked’).each(function() { user_ids += $(this).attr(‘value’) + ‘;’; }); $(‘input#lin_msg_uids’).attr(‘value’, user_ids); $(‘div.lin_widget_msg_form_container div.loading_img’).css(‘display’, ‘none’); $(‘div.lin_widget_msg_form_container div.form_code’).css(‘display’, ‘block’); $(‘div.lin_widget_msg_form_container’).css(‘display’, ‘block’); }, onCleanup: function() { $(‘input#lin_msg_uids’).attr(‘value’, ”); $(‘div.lin_widget_msg_form_container’).css(‘display’, ‘none’); $.colorbox.resize(); }, onClosed: function() { //$(‘a#btn_send_message’).trigger(‘click’); }, onComplete: function() { $.colorbox.resize(); } }); }); $(‘div.fb_widget_msg_form_container form#fb_widget_msg_form’).live(‘submit’, function(e) { // Instead of default form submitting, run an AJAX call to our widget page. var ajax_arr = $(this).serialize(); var ajax_opt = { success: function(responseText, statusText, xhr, $form) { $(‘div.fb_widget_msg_form_container div.loading_img’).css(‘display’, ‘none’); $(“div.fb_widget_msg_form_container div.msg_wrapper”).css(“display”, “block”); $.colorbox.resize(); setTimeout(function() { $(“div.fb_widget_cntrn”).css(“display”, “none”); $.colorbox.close(); $(“div.fb_widget_cntrn”).css(“display”, “block”); $(“div.fb_widget_msg_form_container div.form_code”).css(“display”, “block”); $(“div.fb_widget_msg_form_container div.msg_wrapper”).css(“display”, “none”); fb_widget_unselect_all(); }, 2300); }, url: ‘ajax.php?page=facebook_widget&action=msg_sender’, data: ajax_arr }; // Hide the form and show the spinning wheel. $(‘div.fb_widget_msg_form_container div.loading_img’).css(‘display’, ‘block’); $(‘div.fb_widget_msg_form_container div.form_code’).css(‘display’, ‘none’); $.colorbox.resize(); // Issue the request. $.ajax(ajax_opt); // Prevent default form submitting. return false; }); $(‘div.lin_widget_msg_form_container form#lin_widget_msg_form’).live(‘submit’, function(e) { // Instead of default form submitting, run an AJAX call to our widget page. var ajax_arr = $(this).serialize(); var ajax_opt = { success: function(responseText, statusText, xhr, $form) { $(‘div.lin_widget_msg_form_container div.loading_img’).css(‘display’, ‘none’); $(“div.lin_widget_msg_form_container div.msg_wrapper”).css(“display”, “block”); $.colorbox.resize(); setTimeout(function() { $(“div.lin_widget_cntrn”).css(“display”, “none”); $.colorbox.close(); $(“div.lin_widget_cntrn”).css(“display”, “block”); $(“div.lin_widget_msg_form_container div.form_code”).css(“display”, “block”); $(“div.lin_widget_msg_form_container div.msg_wrapper”).css(“display”, “none”); lin_widget_unselect_all(); }, 2300); }, url: ‘ajax.php?page=linkedin_widget&action=msg_sender’, data: ajax_arr }; // Hide the form and show the spinning wheel. $(‘div.lin_widget_msg_form_container div.loading_img’).css(‘display’, ‘block’); $(‘div.lin_widget_msg_form_container div.form_code’).css(‘display’, ‘none’); $.colorbox.resize(); // Issue the request. $.ajax(ajax_opt); // Prevent default form submitting. return false; }); $(‘div.social_plugin_tab a’).click(function(e) { // Prevent default hyperlink action. e.preventDefault(); // This regexp pattern will be used to get tabs indices. var number_pattern = /[0-9]+/; // Get clicked tab. var clicked_tab = $(this).parent(); var clicked_tab_idx = parseInt($(clicked_tab).attr(‘class’).match(number_pattern)[0]); // Get currently active tab. var currently_active = $(‘div#social_plugins_tabs’).find(‘div.social_plugin_tab_active’); var currently_active_idx = parseInt($(currently_active).attr(‘class’).match(number_pattern)[0]); // Proceed only when we have indices. if ((!isNaN(clicked_tab_idx)) && (!isNaN(currently_active_idx))) { // Hide currently active tab. $(currently_active).removeClass(‘social_plugin_tab_active’); $(‘div.social_plugin_tab_content.content_box’ + currently_active_idx). removeClass(‘social_plugin_tab_content_active’); // Show the clicked tab. $(clicked_tab).addClass(‘social_plugin_tab_active’); $(‘div.social_plugin_tab_content.content_box’ + clicked_tab_idx). addClass(‘social_plugin_tab_content_active’); } }); /** * A very basic equivalent of PHP’s sprintf() function. */ String.prototype.format = function() { var args = arguments; return this.replace(/{(d+)}/g, function(match, number) { return typeof args[number] != “undefined” ? args[number] : match ; }); }; /** * This binding is responsible for positioning the name tooltip, * depending on whether the person’s tile is placed in the * left or in the right column. */ $(“div.fb_person a,div.lin_person a”).live(‘hover’, function() { // Get parent’s position. var pos = $(this).parent().offset(); var par = $(this).parent().parent(); var name = $(this).find(“div.name”); var ref = (par.hasClass(“lin_person”)) ? $(“div.lin_widget_cntrn”) : $(“div.fb_widget_cntrn”); if ($(“div.apply_linkedin_widget”).length) { max_left = 67; max_top = 65; } else { max_left = 47; max_top = 45; } if (!par.hasClass(“left_person”)) { var left = pos.left; left -= (Math.abs(max_left – name.width())); $(name).css(“left”, left + “px”); } $(name).css(“top”, (pos.top + max_top) + “px”); }); $(“div.fb_recipients_container div.fb_recipient a,div.lin_recipients_container div.lin_recipient a”).live(“click”, function(e) { e.preventDefault(); var id = $(this).attr(“personid”); var sel = ($(this).parent().hasClass(“fb_recipient”)) ? “div#facebook_widget” : “div#linkedin_widget”; var elem = $(sel).find(“input[value=” + id + “]”); var hyperlink = $(elem).parent().next().find(“a”); $(hyperlink).trigger(“click”); $(this).parent().remove(); }); $(“div.fb_person a,div.lin_person a”).live(‘click’, function(e) { e.preventDefault(); var pos = $(this).parent().offset(); var is_fb = $(this).parent().hasClass(“fb_person_photo”); // Display the overlay div over the clicked photo. var overlay = $(this).find(“div.selection_overlay”); $(overlay)/*.css(“top”, pos.top)*/.toggle(); var is_selected = $(overlay).is(“:visible”); var txt_multi = “”; var txt_single = “”; // Now, depending on whether the photo is selected or not // let’s check/uncheck the hidden combobox associated // with the clicked person. var input_selector = (is_fb) ? “input[name=fb_widget_check]” : “input[name=lin_widget_check]”; var input = $(this).parent().prev().find(input_selector); if (is_selected) { $(input).attr(“checked”, “checked”); } else { $(input).removeAttr(“checked”); } var cntrn_selector = (is_fb) ? “div.fb_recipients_container” : “div.lin_recipients_container”; var widget_sel = (is_fb) ? “div#facebook_widget” : “div#linkedin_widget”; var recp_selector = (is_fb) ? “div.fb_recipient” : “div.lin_recipient”; if (is_selected) { // If this person is selected, create a new “bubble” in the // recipients list. var name = $(this).find(“div.name”).text(); var new_a = $(““, { href: “#”, personid: $(input).attr(“value”), }); var new_div = $(“”, { ‘class’: (is_fb) ? “fb_recipient” : “lin_recipient”, }); var new_span = $(“”, { text: name }); $(new_span).appendTo(new_div); $(new_a).appendTo(new_div); $(cntrn_selector).append(new_div); } else { // Otherwise, remove the existing one. var hyperlink = $(cntrn_selector).find(“a[personid=” + $(input).attr(“value”) + “]”); $(hyperlink).parent().remove(); } // If we don’t have any recipients, display a placeholder text. if ($(cntrn_selector).find(recp_selector).length == 0) { $(cntrn_selector + ” span.placeholder”).show(); } else { $(cntrn_selector + ” span.placeholder”).hide(); } // Depending on the count of selected people, change the text at the // bottom of the box which says how many recipients we have selected. var visible_count = $(widget_sel + ” div.selection_overlay:visible”).length; var recp_text_sel = (is_fb) ? “p#fbwidget_recp” : “p#linwidget_recp”; if (visible_count == 1) { $(recp_text_sel).text(txt_single); } else { $(recp_text_sel).text(txt_multi.format(visible_count)); } // Enable/disable the “Send Message” button. //var checked_cnt = $(“div.fb_person_check input[type=checkbox]:checked”).length; if (/*checked_cnt*/visible_count > 0) { if (is_fb) { $(“a#fbwidget_send”).removeClass(“disabled”).addClass(“green”); } else { $(‘a#linwidget_send span.title_no_logo’).removeClass(‘disabled’); } } else { if (is_fb) { $(“#fbwidget_send”).removeClass(“green”).addClass(“disabled”); } else { $(‘a#linwidget_send span.title_no_logo’).addClass(‘disabled’); } } }); }); ]]>
Source

By fashonana

Fashonana is a fashion blog for the fashionable woman of this era.

Leave a comment

Your email address will not be published.

Skip to content