2022-07-25 12:21:16 +02:00
|
|
|
|
2022-07-27 11:48:04 +02:00
|
|
|
function kolektorCreateResponsePopup(){
|
2022-07-26 10:14:04 +02:00
|
|
|
|
|
|
|
$("#fullscreen").addClass('PopUpNarrow').addClass('divPopUp');
|
|
|
|
$("#fullscreen").load('ajax.php?t=kolektor&a=add_repsonse_popup', function() {
|
|
|
|
|
|
|
|
$('#fade').fadeTo('slow', 1);
|
|
|
|
$('#fullscreen').show();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-07-27 11:48:04 +02:00
|
|
|
function kolektorCreateResponseClose(){
|
2022-07-26 10:14:04 +02:00
|
|
|
|
|
|
|
$('#fade').fadeOut('slow');
|
|
|
|
$('#fullscreen').fadeOut('slow').html('');
|
|
|
|
}
|
|
|
|
|
2022-07-27 11:48:04 +02:00
|
|
|
function kolektorCreateResponse(){
|
2022-07-25 12:21:16 +02:00
|
|
|
|
|
|
|
var form = $("#kolektor_add_response_form").serializeArray();
|
|
|
|
|
|
|
|
$('#kolektor_add_response').load('ajax.php?t=kolektor&a=add_repsonse', form);
|
|
|
|
|
2022-07-27 11:48:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function kolektorSelectSurvey(){
|
|
|
|
|
|
|
|
var survey_sequence = $('input[name="kolektor_survey"]:checked').attr("sequence");
|
|
|
|
|
|
|
|
console.log(survey_sequence);
|
|
|
|
|
|
|
|
if(survey_sequence > 0 && survey_sequence < 7){
|
|
|
|
|
|
|
|
$('#kolektor_respondent_settings').slideDown();
|
|
|
|
|
|
|
|
if(survey_sequence == 5 || survey_sequence == 6){
|
|
|
|
$('#kolektor_setting_activation').slideDown();
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$('#kolektor_setting_activation').slideUp();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$('#kolektor_respondent_settings').slideUp();
|
|
|
|
}
|
2022-07-25 12:21:16 +02:00
|
|
|
}
|