');
jQuery(".wpbdp-field-email .value ").prepend('');
jQuery(".wpbdp-field-location .value").prepend('');
jQuery(".wpbdp-field-languages_spoken .value").prepend('');
var mylist = jQuery('#wpbdp-listings-list');
var listitems = mylist.children('.wpbdp-listing').get();
listitems.sort(function(a, b) {
var aName = jQuery(a).children(".listing-title").text().split(" ");
var bName = jQuery(b).children(".listing-title").text().split(" ");
var aLastName = aName[aName.length - 1];
var bLastName = bName[bName.length - 1];
return aLastName.toUpperCase().localeCompare(bLastName.toUpperCase());
})
jQuery.each(listitems, function(idx, itm) { mylist.append(itm); });
if(window.location.href.indexOf("et_fb=1") > -1){
jQuery(".internalNotes").css("display","block");
}
else{
jQuery(".internalNotes").css("display","none");
}
jQuery(".et_button_no_icon .et_pb_button").css("padding","10px 50px");
if(window.location.href == "https://www.morgancc.edu/about-mcc/staff-directory/" ){
window.location.replace("https://www.morgancc.edu/about-mcc/staff-directory/?wpbdp_view=all_listings");
}
jQuery(".wpbdp-listing a").each(function(){
var linkURL = jQuery(this).attr('href');
if(linkURL.indexOf("https://") > -1){
jQuery(this).removeAttr("href");
}
});
jQuery(".et_pb_module").each(function(){
//console.log("column");
//console.log(jQuery(this).css("background-color") );
if(jQuery(this).css("background-color") == "#002a3a" || jQuery(this).css("background-color") == "rgb(0, 42, 58)"){
//console.log("found");
jQuery(this).addClass("darkForm");
}
});
jQuery(".et_pb_column").each(function(){
//console.log("column");
//console.log(jQuery(this).css("background-color") );
if(jQuery(this).css("background-color") == "#002a3a" || jQuery(this).css("background-color") == "rgb(0, 42, 58)"){
//console.log("found");
jQuery(this).addClass("darkForm");
}
});
});--> -->