';
}
//showJobSearchKeyOccGroupModal(passKeyword, occgroups, modalMessage, endPath, func);
if (locations.length > 0) {
var divModal;
divModal = '
' +
'
' +
'
' +
'' +
'
' +
'' +
'
' +
'' +
'
' +
'
' +
'
';
$('body').append(divModal);
$('#spnConfirmGeoLocationStart').html(modalMessage)
$('#spnConfirmGeoLocationBtns').html(locations)
$('#modalConfirmGeoLocation').modal('show');
}
}
}
})
}
function processConfirmGeoLocationRedirect(selectedLocation, func) {
$('#univsearchlocation').val(unescape(selectedLocation));
$('#univsearchlocation').trigger("change");
sessionStorage.setItem("processedConfirmGeoLocation", "1");
eval(unescape(func));
}
function confirmNonGeoLocation(selArea, func) {
var locations = '';
$.ajax({
type: "GET",
url: getRoot() + "vosnet/Handlers/ConfirmLocation.ashx?q=" + selArea,
data: "",
cache: false,
success: function (response) {
if (response.length == 0) {
sessionStorage.setItem("processedConfirmGeoLocation", "1");
eval(func);
}
else {
if (typeof (hidePleaseWait) != "undefined") {
hidePleaseWait();
}
if ($('.ajaxLoadingDIV').length > 0) { $('.ajaxLoadingDIV').slideUp(); }
if ($('.ajaxLoadingDIV_s').length > 0) { $('.ajaxLoadingDIV_s').slideUp(); }
var arr1 = response.split('\n');
var arr2;
var cssclass = "";
var funcWithGeo = "";
var modalMessage = getTranslationLangString("SearchLocMessage", "JobSearchQuick");
modalMessage = modalMessage.replace("{0}", selArea.charAt(0).toUpperCase() + selArea.slice(1));
// Add location options
for (var i = 0; i < arr1.length - 1; i++) {
arr2 = arr1[i].split('|')
funcWithGeo = func.substring(0, func.length - 1) + "'" + arr2[1].replace(/\n|\r/g, "") + "')";
cssclass = "btn btn-primary btn-block client-color"
locations += '
';
}
//showJobSearchKeyOccGroupModal(passKeyword, occgroups, modalMessage, endPath, func);
if (locations.length > 0) {
var divModal;
divModal = '
' +
'
' +
'
' +
'' +
'
' +
'' +
'
' +
'' +
'
' +
'
' +
'
';
$('body').append(divModal);
$('#spnConfirmGeoLocationStart').html(modalMessage)
$('#spnConfirmGeoLocationBtns').html(locations)
$('#modalConfirmGeoLocation').modal('show');
}
}
}
})
}
function processConfirmNonGeoLocationRedirect(selectedLocation, func) {
$('#univsearchlocation').val(unescape(selectedLocation));
$('#univsearchlocation').trigger("change");
sessionStorage.setItem("processedConfirmGeoLocation", "1");
eval(unescape(func));
}
function confirmLocationJobSearch(location, defaultGeo, strCountry, url, func, forceOccGroup) {
var locations = '';
$.ajax({
type: "GET",
url: getRoot() + "vosnet/Handlers/ConfirmLocation.ashx?q=" + location,
data: "",
cache: false,
success: function (response) {
var savedJobLocation = sessionStorage.getItem("savedJobLocation")
if (response.length == 0 || (savedJobLocation != null && savedJobLocation.toLowerCase() == location.toLowerCase())) {
sessionStorage.setItem("processedConfirmLocation", "1");
myUnivSearchv20(defaultGeo, strCountry, url, func, forceOccGroup, false, false);
}
else {
var arr1 = response.split('\n');
var arr2;
var cssclass = "";
var modalMessage = getTranslationLangString("SearchLocMessage", "JobSearchQuick");
modalMessage = modalMessage.replace("{0}", location.charAt(0).toUpperCase() + location.slice(1));
// Add location options
for (var i = 0; i < arr1.length - 1; i++) {
arr2 = arr1[i].split('|')
cssclass = "btn btn-primary btn-block client-color HPRwidth100"
locations += '
';
}
//showJobSearchKeyOccGroupModal(passKeyword, occgroups, modalMessage, endPath, func);
if (locations.length > 0) {
var divModal;
divModal = '
' +
'
' +
'
' +
'' +
'
' +
'' +
'
' +
'' +
'
' +
'
' +
'
';
$('body').append(divModal);
$('#spnSuggestLocationStart').html(modalMessage)
$('#spnSuggestLocationBtns').html(locations)
$('#modalSuggestLocation').modal('show');
}
}
}
})
}
function processConfirmLocationRedirectJobSearch(selectedLocation, defaultGeo, strCountry, url, func, forceOccGroup) {
$('#univsearchlocation').val(unescape(selectedLocation));
$('#univsearchlocation').trigger("change");
sessionStorage.setItem("processedConfirmLocation", "1");
sessionStorage.setItem("savedJobLocation", unescape(selectedLocation));
myUnivSearchv20(defaultGeo, strCountry, url, func, forceOccGroup);
}
function confirmLocationJobSearchQuick(location) {
var locations = '';
$.ajax({
type: "GET",
url: getRoot() + "vosnet/Handlers/ConfirmLocation.ashx?q=" + location,
data: "",
cache: false,
success: function (response) {
var savedJobLocation = sessionStorage.getItem("savedJobLocation")
if (response.length == 0 || (savedJobLocation != null && savedJobLocation.toLowerCase() == location.toLowerCase())) {
sessionStorage.setItem("processedConfirmLocation", "1");
$('#ctl00_Main_content_btnSearch2').trigger('click');
}
else {
var arr1 = response.split('\n');
var arr2;
var cssclass = "";
var modalMessage = getTranslationLangString("SearchLocMessage", "JobSearchQuick");
modalMessage = modalMessage.replace("{0}", location.charAt(0).toUpperCase() + location.slice(1));
// Add location options
for (var i = 0; i < arr1.length - 1; i++) {
arr2 = arr1[i].split('|')
cssclass = "btn btn-primary btn-block client-color"
locations += '
';
}
//showJobSearchKeyOccGroupModal(passKeyword, occgroups, modalMessage, endPath, func);
if (locations.length > 0) {
var divModal;
divModal = '
' +
'
' +
'
' +
'' +
'
' +
'' +
'
' +
'' +
'
' +
'
' +
'
';
$('body').append(divModal);
$('#spnSuggestLocationStart').html(modalMessage)
$('#spnSuggestLocationBtns').html(locations)
$('#modalSuggestLocation').modal('show');
}
}
}
})
}
function processConfirmLocationQuickRedirectJobSearch(selectedLocation) {
$('#ctl00_Main_content_univsearchlocation').val(unescape(selectedLocation));
$('#ctl00_Main_content_univsearchlocation').trigger("change");
sessionStorage.setItem("processedConfirmLocation", "1");
sessionStorage.setItem("savedJobLocation", unescape(selectedLocation));
$('#ctl00_Main_content_btnSearch2').trigger('click'); // version of function found in JobSearchCriteriaQuick.aspx
}