function showUniformElements() { if ($(".trv_market_search_uniform_elements input").length == $.uniform.elements.length) { $(".trv_market_search_uniform_dummy").hide(); $(".trv_market_search_uniform_elements").show(); } else { setInterval(function(){showUniformElements()},100); } } function clearProfileName(profileName) { var zw = profileName.split("("); return zw[0].trim(); } function confirmResetSearchprofile(userID, patternID) { confirmDialog("Reset zoekprofiel", "resetSearchprofile("+userID+", "+patternID+")" , "Resetten gebruikers zoekprofiel?"); } function resetSearchprofile(userID, patternID) { blockScreen(); $.trv_postJson({ module_name: "market_search", ajax_type: "RESET_SEARCHPROFILE", blockScreen: false, parameter: { userID: userID, patternID: patternID }, onSuccess: function(data) { window.location.reload(); } }); } function copyProfileToCurrentSearchprofileQuestion(tree_id, userID) { confirmDialog("", "copyProfileToCurrentSearchprofile("+tree_id+", "+userID+")", "", null, null, "$('.trv_marketSearch_profileSearch_comboPattern').val(0)" ); } function copyProfileToCurrentSearchprofile(tree_id, userID) { blockScreen(true); $.trv_postJson({ module_name: "market_search", ajax_type: "LOAD_PATTERN", blockScreen: true, parameter: { userID: userID, profileID: $('.trv_marketSearch_profileSearch_comboPattern').val() }, onSuccess: function(data) { blockScreen(true); if(tree_id != 0) { showOtherSelectedModel(tree_id, userID); } else { window.location.reload(); } } }); } function showOtherSelectedModel(tree_id, userID) { // alert("wert von vorlage: "+$('.trv_marketSearch_profileSearch_comboPattern').val()); blockScreen(); document.location.href='?userID='+userID+'&item='+tree_id+'&drop='+$('.trv_marketSearch_profileSearch_comboCrit').val(); } function confirmSaveSearchProfile(patternID, userID) { if ($("#trv_module_marketSearch_PopUp").length == 0) { blockScreen(true); var profileID = $('.trv_marketSearch_profileSearch_comboPattern').val(); var selectedProfileName = ""; if(profileID > 0) { selectedProfileName = $(".trv_marketSearch_profileSearch_comboPattern option:selected").text(); } selectedProfileName = clearProfileName(selectedProfileName); $("body").append(""); $("#trv_module_marketSearch_PopUp").load("http://www.it-matchmaker.nl/core/modules/market_search/components/saveProfile.php?selectedProfileName='"+selectedProfileName+"'&patternID="+patternID+"&userID="+userID+"&full_path=NVkzNENoeWMoUmQ1aGFGPUYzd0ZzdUE7LCgvKD4xekhkZTVDK0ZzRWhiNVdtQjA8PkMqZEI_KyA7JXA7PjN5VHomcUVXW1daUG8sM2Fjbn0,&app_language=nl&PHPSESSID=c2a71a8fe805d2a1bf489db5b71b7b8a").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_marketSearch_PopUp").remove(); }, beforeClose: function(event, ui) { }, closeOnEscape: false, resizable: true, position: ['center',5], width: 500, modal: true, bgiframe: true, draggable: false, title: '' }); } }