Pellets HN Grizzly kal, 6,36 mm, 150 pcs - AFG-defense.eu (2024)

','

'].join(''),className: 'vex vex-cs vex-product-watch',afterOpen: function(vexContent) {var datePicker = jQuery('#ui-datepicker-div');if( datePicker.length ) { // fix na datepickerjQuery('body').append(datePicker)}vexContent.on('click', "label[for=agreed_personal_info_field_p_watch]", function (event) { // gdpr kontrola zaskrtnutiavar this_element = jQuery(this);if (this_element.parent().find("input[type=checkbox]").prop('checked') !== true ) {this_element.parent().removeClass('error_gdpr');this_element.parent().find("input[type=checkbox]").removeClass("error").addClass("filled").addClass("valid");if (this_element.parent().parent().find(".error_box_gdpr").length > 0)this_element.parent().parent().find(".error_box_gdpr").remove();if (this_element.parent().parent().find(".cleaner").length > 0)this_element.parent().parent().find(".cleaner").remove();} else {var errorMsgApendet = '

' + js_gdpr_agree_to_gdpr + '

';this_element.parent().parent().find("div.agreed_personal_info_field_p_watch").after(errorMsgApendet);this_element.parent().addClass('error_gdpr');}});vexContent.on('focusout', 'input', function (event) {var this_element = jQuery(this);if (this_element.val() == "") {if (this_element.parent().find(".error_box").length) {this_element.parent().find(".error_box").remove();this_element.parent().find(".cleaner").remove();}switch (this_element.attr("name")) {default:if (!this_element.hasClass("error"))this_element.addClass("error");this_element.after('

' + js_lang_new_form_item + ' "' + this_element.parent().find("label").html() + '" ' + js_lang_new_form_nesessery + '

');break;}} else {if (this_element.parent().find(".error_box").length) {this_element.parent().find(".error_box").remove();this_element.parent().find(".cleaner").remove();}this_element.removeClass("error").removeClass("valid").addClass("filled");switch (this_element.attr("name")) {case "email":case "youremail":case "email_input":if (validateEmail(this_element.val()))this_element.removeClass("error").addClass("valid");elsethis_element.removeClass("valid").addClass("error").after('

' + cms_js_lang_lm_wrong_email.replace(/\./g, ' ') + '

');break;} } });vexContent.on('click', 'input[type=radio]', function (event) {var this_element = jQuery(this);var checkStatus = this_element.prop('checked');if (this_element.hasClass("imChecked")) {this_element.removeClass("imChecked");this_element.prop('checked', false);} else {this_element.prop('checked', true);this_element.addClass("imChecked");} var watchFormFinal = jQuery('form[name="product_watch"]:first'); var allRadiosFinal = watchFormFinal.find('input[type="radio"]'); var checkedRadiosFinal = watchFormFinal.find('input[type="radio"]:checked'); if ( watchFormFinal.find('.variants').hasClass('error_variants') && checkedRadiosFinal.length ) { watchFormFinal.find('.variants').removeClass('error_variants'); watchFormFinal.find('.error_box_variants').remove(); } });vexContent.on('click', '.vex-dialog-button', function (event) {event.preventDefault();if (jQuery(this).hasClass('vex-dialog-button-primary')) {js_product_watch_form_validate_inputs_stock_only(vexContent.data().vex.id);} else if (jQuery(this).hasClass('watch-unfollow')) {var formContainer = jQuery('form[name="product_watch"]');formContainer.find('input[name=watch_type]').val(0);js_product_watch_form_validate_inputs_stock_only(vexContent.data().vex.id);} else {vex.close(vexContent.data().vex.id); }});}}); } else {// start of v2vex.open({content : ['

'].join(''),className: 'vex vex-cs vex-product-watch',afterOpen: function (vexContent) {var datePicker = jQuery('#ui-datepicker-div');js_watch_type_changed();if (datePicker.length) { // fix na datepickerjQuery('body').append(datePicker)}if ( typeof js_Config_watch_simple_form !== "undefined" && js_Config_watch_simple_form > 0 ) {if ( isVariantWatched() ) {var cancelWatchBtn = jQuery('');var vexBtns = vexContent.find('div.vex-dialog-buttons');if (vexBtns) {cancelWatchBtn.appendTo(vexBtns); } } }if (typeof js_Config_product_watch_new_validation !== "undefined" && js_Config_product_watch_new_validation > 0) {var container = jQuery('form[name="product_watch"]');var watch_type = jQuery(container).find('select[name=watch_type]').val();if (watch_type != 2) {vexContent.find('div.date_range').hide();}vexContent.find('input[name=start_date]').datepicker({dateFormat: 'yy-mm-dd', onSelect: function () {jQuery(this).trigger("focusout");},beforeShow: function (input, inst) {jQuery(inst.dpDiv).addClass("material_design");}});vexContent.find('input[name=stop_date]').datepicker({dateFormat: 'yy-mm-dd', onSelect: function () {jQuery(this).trigger("focusout");},beforeShow: function (input, inst) {jQuery(inst.dpDiv).addClass("material_design");}});if( is_cs_user('new-dog') ) {vexContent.on('change', 'select[name=attributes_select]', function () {js_attribute_changed();});}vexContent.on('change', 'select[name=watch_type]', function () {js_watch_type_changed();});vexContent.on('focusout', 'input', function (event) {var this_element = jQuery(this);if (this_element.val() == "") {if (this_element.parent().find(".error_box").length) {this_element.parent().find(".error_box").remove();this_element.parent().find(".cleaner").remove();}switch (this_element.attr("name")) {// case "captcha_code":// // doplnit vymazanie box_error, cleaner a pridat error na label// break;case "price_change_notify":if (jQuery('input[name="price_change_notify_check"]').is(':checked')) {if (!this_element.hasClass("error"))this_element.addClass("error");this_element.after('

' + js_lang_new_form_item + ' "' + this_element.parent().find("label").html() + '" ' + js_lang_new_form_nesessery + '

');}break;default:if (!this_element.hasClass("error"))this_element.addClass("error");this_element.after('

' + js_lang_new_form_item + ' "' + this_element.parent().find("label").html() + '" ' + js_lang_new_form_nesessery + '

');break;}} else {if (this_element.parent().find(".error_box").length) {this_element.parent().find(".error_box").remove();this_element.parent().find(".cleaner").remove();}this_element.removeClass("error").removeClass("valid").addClass("filled");switch (this_element.attr("name")) {case "email":case "youremail":case "email_input":if (validateEmail(this_element.val()))this_element.removeClass("error").addClass("valid");elsethis_element.removeClass("valid").addClass("error").after('

' + cms_js_lang_lm_wrong_email.replace(/\./g, ' ') + '

');break;case "start_date":case "stop_date":this_element.removeClass("error").addClass("valid");break;}}});vexContent.on('focusout', 'textarea[name="note"]', function (event) {var this_element = jQuery(this);if (this_element.val() == '')this_element.removeClass('filled');elsethis_element.addClass('filled');});vexContent.on('click', "label[for=agreed_personal_info_field_p_question]", function (event) {var this_element = jQuery(this);if (this_element.parent().find("input[type=checkbox]").attr('checked') !== "undefined") {if (this_element.parent().find(".error_box").length > 0)this_element.parent().find(".error_box").remove();if (this_element.parent().find(".cleaner").length > 0)this_element.parent().find(".cleaner").remove();} else {this_element.parent().append('

' + js_lang_new_form_nesessery_item + '

');}});if (typeof js_Config_product_watch_email_val_fix !== "undefined" && js_Config_product_watch_email_val_fix > 0) { //tt-watch-fixvexContent.on('click', "label[for=agreed_personal_info_p_watch]", function (event) { // gdpr kontrola zaskrtnutiavar this_element = jQuery(this);if (this_element.parent().find("input[type=checkbox]").prop('checked') !== true ) {this_element.parent().removeClass('error_gdpr');this_element.parent().find("input[type=checkbox]").removeClass("error").addClass("filled").addClass("valid");if (this_element.parent().parent().find(".error_box_gdpr").length > 0)this_element.parent().parent().find(".error_box_gdpr").remove();if (this_element.parent().parent().find(".cleaner").length > 0)this_element.parent().parent().find(".cleaner").remove();} else {var errorMsgApendet = '

' + js_gdpr_agree_to_gdpr + '

';this_element.parent().parent().find("div.agreed_personal_info_field_p_watch").after(errorMsgApendet);this_element.parent().addClass('error_gdpr');}});}if (typeof js_Config_watch_change_notify_fix !== "undefined" &&js_Config_watch_change_notify_fix > 0) {vexContent.on('click', ".watch_method>input:checkbox", function (event) {var this_element = jQuery(this);if ( this_element.prop('checked') == true) {jQuery('.watch_method>input:checkbox').removeClass('error');if ( typeof js_Config_watch_validation_fix !== "undefined" && js_Config_watch_validation_fix > 0 ) {jQuery('div.watch_method').removeClass('error_area'); } } }); }}vexContent.on('click', '.vex-dialog-button', function (event) {if (jQuery(this).hasClass('vex-dialog-button-primary')) {js_product_watch_form_validate_inputs(vexContent.data().vex.id);} else {vex.close(vexContent.data().vex.id);}});}});// end of v2}}});return false;}function js_product_watch_form_validate_inputs(vexId) {var reg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;var email_input = jQuery('.product_watch_container form[name="product_watch"]:first').find('[name="email_input"]:first');if (typeof js_Config_product_watch_email_val_fix !== "undefined" && js_Config_product_watch_email_val_fix > 0) { //tt-watch-fixif ( typeof js_Config_product_watch_new_validation !== "undefined" && js_Config_product_watch_new_validation > 0) {var email_input = jQuery('form[name="product_watch"]:first').find('[name="email_input"]:first'); } }var phcheck = 0;var phemail = 0;var personalInfoCheckBox = 0;if ( jQuery('#agreed_personal_info_p_watch').prop('checked')) personalInfoCheckBox = 1;if ( jQuery('#agreed_personal_info_field_p_watch').prop('checked')) personalInfoCheckBox = 1;if ( jQuery('input[name="stock_change_notify_check"]:first').prop('checked')) phcheck = 1;if ( jQuery('input[name="price_change_notify_check"]:first').prop('checked')) phcheck = 1;if ( jQuery('input[name="availability_change_notify_check"]:first').prop('checked')) phcheck = 1;if (email_input.val() != '' && reg.test(email_input.val())) phemail = 1;if ( typeof js_Config_watch_validation_fix !== "undefined" && js_Config_watch_validation_fix > 0 ) {var container = jQuery('form[name="product_watch"]');if ( typeof js_Config_watch_simple_form !== "undefined" && js_Config_watch_simple_form > 0 ) {phcheck = 1;var watchType = jQuery(container).find('input[name=watch_type]').val();} else {var watchType = jQuery(container).find('select[name=watch_type]').val(); }if ( watchType == 0 ) {phcheck = 1; }if (email_input.length) {if ( phemail == 0 && !email_input.hasClass("error") ) { // emailemail_input.addClass("error").after('

' + cms_js_lang_lm_wrong_email.replace(/\./g, ' ') + '

'); }if ( personalInfoCheckBox == 0 && !jQuery("form div.agreed_personal_info_field_p_watch").hasClass("error_gdpr") ) {jQuery("form div.agreed_personal_info_field_p_watch").addClass("error_gdpr").after('

' + js_gdpr_agree_to_gdpr + '

'); }if ( phcheck == 0 ) { //pr + st + avjQuery('input[name="stock_change_notify_check"]:first').addClass('error');jQuery('input[name="price_change_notify_check"]:first').addClass('error');jQuery('input[name="availability_change_notify_check"]:first').addClass('error');jQuery('div.watch_method').addClass('error_area');}if ( phemail == 1 && phcheck == 1 && personalInfoCheckBox == 1 ) {console.log('all fine');js_product_watch_form_save(vexId); } }} else {if (email_input.length) {if (/*phcheck == 1 && */phemail == 1 && personalInfoCheckBox == 1) {if (typeof js_Config_watch_change_notify_fix !== "undefined" &&js_Config_watch_change_notify_fix > 0) {if ( phcheck == 1 ) {js_product_watch_form_save(vexId);} else {jQuery('input[name="stock_change_notify_check"]:first').addClass('error');jQuery('input[name="price_change_notify_check"]:first').addClass('error');jQuery('input[name="availability_change_notify_check"]:first').addClass('error');}} else {js_product_watch_form_save(vexId);}} else {if (personalInfoCheckBox == 0 && !jQuery("form div.agreed_personal_info_field_p_watch").hasClass("error_gdpr"))jQuery("form div.agreed_personal_info_field_p_watch").addClass("error_gdpr").after('

' + js_gdpr_agree_to_gdpr + '

');if (phemail == 0 && !email_input.hasClass("error_gdpr"))email_input.addClass("error_gdpr");if (phcheck == 0)jQuery('.product_watch_container form[name="product_watch"]:first').find('.product_watch_send_email_checkbox:first').addClass("error_gdpr");}} else if (personalInfoCheckBox == 0 && !jQuery("form div.agreed_personal_info_field_p_watch").hasClass("error_gdpr")) {jQuery("form div.agreed_personal_info_field_p_watch").addClass("error_gdpr").after('

' + js_gdpr_agree_to_gdpr + '

');} else {js_product_watch_form_save(vexId);} }}function js_product_watch_form_validate_inputs_stock_only(vexId) {var reg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;var email_input = jQuery('.product_watch_container form[name="product_watch"]:first').find('[name="email_input"]:first');var phemail = 0;var personalInfoCheckBox = 0;var variantRadio = 0;if (jQuery('#agreed_personal_info_p_watch').prop('checked')) personalInfoCheckBox = 1;if (jQuery('#agreed_personal_info_field_p_watch').prop('checked')) personalInfoCheckBox = 1; var watchForm = jQuery('form[name="product_watch"]:first'); var allRadios = watchForm.find('input[type="radio"]'); var checkedRadios = watchForm.find('input[type="radio"]:checked'); if (allRadios.length && checkedRadios.length) { // existuju moznosti a je nieco vybrate variantRadio = 1; } else if (allRadios.length && !checkedRadios.length ) { // existuju moznosti ale nieje vybrate variantRadio = 0; if ( !watchForm.find('.variants').hasClass('error_variants') ) { watchForm.find('.variants').addClass('error_variants').after('

' + js_watch_stock_attr_error_msg + '

'); } } else { variantRadio = 1; }if (email_input.val() != '' && reg.test(email_input.val())) phemail = 1;if (email_input.length) {if (phemail == 1 && personalInfoCheckBox == 1 && variantRadio == 1) { // ak je email + gdpr + atributjs_product_watch_form_save(vexId);} else { // ak niejeif (personalInfoCheckBox == 0 && !jQuery("form div.agreed_personal_info_field_p_watch").hasClass("error_gdpr"))jQuery("form div.agreed_personal_info_field_p_watch").addClass("error_gdpr").after('

' + js_gdpr_agree_to_gdpr + '

');if (phemail == 0 && !email_input.hasClass("error_gdpr"))email_input.addClass("error_gdpr");}} else if (personalInfoCheckBox == 0 && !jQuery("form div.agreed_personal_info_field_p_watch").hasClass("error_gdpr")) {jQuery("form div.agreed_personal_info_field_p_watch").addClass("error_gdpr").after('

' + js_gdpr_agree_to_gdpr + '

');} else if (variantRadio == 0 && !jQuery("form div.variants").hasClass("error_variants") ) {jQuery("form div.variants").addClass('error_variants').after('

' + js_watch_stock_attr_error_msg + '

');} else {js_product_watch_form_save(vexId);}}function js_product_watch_form_save(vexId) {if (!product_watch_form_valid()) {return false;}var post_url = 'https://www.afg-defense.eu/modules/mod_vm_product_watch.php';var jqo_form = jQuery('.product_watch_container form[name="product_watch"]:first');if ( typeof js_Config_product_watch_new_validation !== "undefined" && js_Config_product_watch_new_validation > 0) jqo_form = jQuery('form[name="product_watch"]:first');if ( typeof js_Config_watch_stock_only !== "undefined" && js_Config_watch_stock_only > 0 ) {var post_fields = ['product_id', 'email_input', 'watch_type', 'stock_change_notify_check'];var checkedAttribute = jqo_form.find('.imChecked');if(checkedAttribute) {post_fields.push('attributes_select');} } else {var post_fields = ['product_id', 'email_input', 'watch_type', 'note', 'stock_change_notify_check', 'price_change_notify_check', 'price_change_notify', 'availability_change_notify_check', 'availability_notify_select', 'start_date', 'stop_date']; }// mame zapnute variantyif(jQuery('form[name=product_watch] select#attributes_select').length){post_fields.push('attributes_select'); } post_fields.push('captcha_code');post_fields.push('agreed_personal_info_p_watch');post_fields.push('form_id');if ( typeof js_Config_watch_simple_form !== "undefined" && js_Config_watch_simple_form > 0 ) {post_fields.push('attributes_select'); }var post_data = {ajax_call: '1',ajax_func: 'save_form',option: 'com_shop',Itemid: '1040'};post_fields.forEach(function(value) {if ( typeof js_Config_watch_stock_only !== "undefined" && js_Config_watch_stock_only > 0 ) {if ( value == 'attributes_select' ) { var checkedRadios = jqo_form.find("input:radio.imChecked"); var radioDataArr = []; if ( checkedRadios.length) { checkedRadios.each(function() { radioDataArr.push(jQuery(this).val()); }); post_data[value] = radioDataArr.join('|,|'); } } else {if (jqo_form.find('[name="'+ value +'"]:first').length) {post_data[value] = jqo_form.find('[name="'+ value +'"]:first').val();if (jqo_form.find('[name="' + value + '"]:first').prop('type') == 'checkbox' && !jqo_form.find('[name="' + value + '"]:first').prop('checked'))//bolo attr('checked') ,'type'post_data[value] = 0;} } } else {if (jqo_form.find('[name="'+ value +'"]:first').length) {post_data[value] = jqo_form.find('[name="'+ value +'"]:first').val();if (jqo_form.find('[name="' + value + '"]:first').prop('type') == 'checkbox' && !jqo_form.find('[name="' + value + '"]:first').prop('checked'))//bolo attr('checked') ,'type'post_data[value] = 0;} }});jQuery.post(post_url, post_data, function (ajax_res) {var json_res = jsGetJSON(ajax_res);if (json_res != null && json_res.success == '1') {if ( typeof js_Config_watch_stock_only !== "undefined" && js_Config_watch_stock_only > 0 ) {var watchType = (post_data['watch_type'] != '0') ? 1 : 0;js_product_watch_set_container_status(watchType);var wachTypeCheck = jqo_form.find('[name="watch_type"]').val();var watchTypeCheckGrand = jqo_form.parent().parent();if ( wachTypeCheck == 1 || wachTypeCheck == 3 ) {var vexReplaceMsg = '

' + js_watch_Stock_custom_header_msg + '

';vexReplaceMsg += '

' + js_watch_stock_custom_body_msg + '

';vexReplaceMsg += '

';watchTypeCheckGrand.html(vexReplaceMsg);} else {vex.close(vexId);} } else {js_product_watch_set_container_status(jqo_form.find('[name="watch_type"]').length > 0 && jqo_form.find('[name="watch_type"]').val() > '0'); }if ( typeof js_Config_watch_simple_form !== "undefined" && js_Config_watch_simple_form > 0 ) {var watchType = (post_data['watch_type'] != '0') ? 1 : 0;if ( post_data['attributes_select'] ) {var variantPosition = jQuery.inArray(post_data['attributes_select'],watched_variants);if ( post_data['watch_type'] != '0' && variantPosition<0 ) {if (json_res.user_id > 0) {watched_variants = []; }watched_variants.push(post_data['attributes_select']); } else if ( post_data['watch_type'] == '0' && (variantPosition>=0) ) { watched_variants.splice(variantPosition,1); } } isVariantWatched();js_product_watch_set_container_status(watchType); }if (json_res.user_id == '0' && post_data['watch_type'] != '0') {jQuery.cookie("strazny_pes_email", post_data['email_input'], {expires: 180,path: '/'});} /* else if (json_res.user_id == '0' && post_data['watch_type'] == '0') { jQuery.cookie("strazny_pes_email["+post_data['product_id']+"]", '', { expires: -1, path: '/' }); } */} else if(ajax_res.indexOf('||')) {vex.dialog.alert(ajax_res.split('||')[1]);if ( typeof js_Config_watch_stock_only !== "undefined" && js_Config_watch_stock_only > 0 ) {vex.close(vexId); }} else {vex.dialog.alert('Chyba pri ukladaní dát!');if ( typeof js_Config_watch_stock_only !== "undefined" && js_Config_watch_stock_only > 0 ) {vex.close(vexId);}}});if ( typeof js_Config_watch_stock_only !== "undefined" && js_Config_watch_stock_only > 0 ) { } else {vex.close(vexId); }return false;}function js_watch_type_changed() {var container = jQuery('form[name="product_watch"]');var watch_type = jQuery(container).find('select[name=watch_type]').val();if (watch_type == 2){container.find('div.date_range').show(); }else {container.find('div.date_range').hide(); }if (watch_type == 0){container.find('div.watch_method').hide(); } else {container.find('div.watch_method').show(); }// if (jQuery('td.product_watching_select select#watch_type').val() == '2') {// jQuery('table.product_watch_table_details tr:has(td.product_watch_date_from), table.product_watch_table_details tr:has(td.product_watch_date_to)').show();// jQuery('.product_watch_cancel_email').hide();// jQuery('.product_watch_cancel_email #email_input').attr('name', 'email_input_not_used');// jQuery('table.product_watch_table_details tr:has(td.product_watch_note_input)').show();// js_datepickers_init();// } else if (jQuery('td.product_watching_select select#watch_type').val() == '0') {// jQuery('table.product_watch_table_details tr:has(td.product_watch_send_email), table.product_watch_table_details tr:has(td.product_watch_send_email_checkbox), table.product_watch_table_details tr:has(td.product_watch_note_input), table.product_watch_table_details tr:has(td.product_watch_date_from), table.product_watch_table_details tr:has(td.product_watch_date_to)').hide();// jQuery('.product_watch_cancel_email').css('display', 'table-row');// jQuery('.product_watch_cancel_email #email_input').attr('name', 'email_input');// } else {// jQuery('table.product_watch_table_details tr:has(td.product_watch_send_email), table.product_watch_table_details tr:has(td.product_watch_send_email_checkbox)').show();// jQuery('table.product_watch_table_details tr:has(td.product_watch_date_from), table.product_watch_table_details tr:has(td.product_watch_date_to)').hide();// jQuery('table.product_watch_table_details tr:has(td.product_watch_note_input)').show();// jQuery('td.product_watch_date_from_calendar input#start_date, td.product_watch_date_to_calendar input#stop_date').val('--');// jQuery('.product_watch_cancel_email').css('display', 'none');// jQuery('.product_watch_cancel_email #email_input').attr('name', 'email_input_not_used');// }}function js_attribute_changed() {var container = jQuery('form[name="product_watch"]');var attributeType = jQuery(container).find('select[name=attributes_select]').val();var watchPriceInput = jQuery(container).find('input[name=price_change_notify]');if( jsonRes.attrTypes[attributeType] ) {watchPriceInput.val(jsonRes.attrTypes[attributeType]); } }function js_datepickers_init() {//jQuery.datepicker.setDefaults(jQuery.datepicker.regional["//"]);jQuery('.pp_pic_holder, .vex.vex-product-watch').find('.date_range').datepicker('destroy').each(function () {jQuery(this).datepicker({showOn: 'button',buttonImage: '/administrator/images/calendar_fam.png',buttonImageOnly: true,firstDay: 1}).datepicker('option', 'dateFormat', 'yy-mm-dd').on('focusin', function () {jQuery(this).datepicker('show');});});}function product_watch_form_valid() {var sform = document.product_watch;if ( typeof js_Config_watch_stock_only !== "undefined" && js_Config_watch_stock_only > 0 ) { // stock only verziavar jqForm = jQuery("form[name=product_watch]");var valid_material_form = true;if (jqForm.find('input[name=email_input]').length > 0 && jqForm.find('input[name=email_input]').hasClass("required")) {if (jqForm.find('input[name=email_input]').val() == "") {jqForm.find('input[name=email_input]').removeClass("valid").removeClass("filled").addClass("error");if (jqForm.find('input[name=email_input]').parent().find('div.error_box').length == 0) {jqForm.find('input[name=email_input]').after('

' + js_lang_new_form_item + ' "' + jqForm.find('input[name=email_input]').parent().find("label").html() + '" ' + js_lang_new_form_nesessery + '

');}valid_material_form = false;}}if (jqForm.find('input[name=agreed_personal_info_field_p_watch]').length > 0) {if ( jqForm.find('input[name=agreed_personal_info_field_p_watch]').prop('checked') == false ) {jqForm.find('input[name=agreed_personal_info_field_p_watch]').removeClass("valid").removeClass("filled").addClass("error");valid_material_form = false;//if (jqForm.find('input[name=agreed_personal_info_field_p_watch]').parent().find('div.error_box_gdpr').length == 0) {//jqForm.find('input[name=agreed_personal_info_field_p_watch]').closest("div").append('

' + js_lang_new_form_nesessery_item + '

');//}}}if (jqForm.find('input[name=captcha_code]').length > 0) {if (jqForm.find('input[name=captcha_code]').val() == "") {jqForm.find('input[name=captcha_code]').removeClass("valid").removeClass("filled").addClass("error");if (jqForm.find('input[name=captcha_code]').parent().find('label.error').length == 0) {jqForm.find('input[name=captcha_code]').parent().find("label").addClass("error");}valid_material_form = false;}}if ( jqForm.find('input[type="radio"]').length > 0 ) {if( !(jqForm.find('input[type="radio"]:checked').length) ) {valid_material_form = false; } }return valid_material_form;} else if ( typeof js_Config_product_watch_new_validation !== "undefined" && js_Config_product_watch_new_validation > 0 ) {var jqForm = jQuery("form[name=product_watch]");var valid_material_form = true;if (jqForm.find('input[name=email_input]').length > 0 && jqForm.find('input[name=email_input]').hasClass("required")) {if (jqForm.find('input[name=email_input]').val() == "") {jqForm.find('input[name=email_input]').removeClass("valid").removeClass("filled").addClass("error");if (jqForm.find('input[name=email_input]').parent().find('div.error_box').length == 0) {jqForm.find('input[name=email_input]').after('

' + js_lang_new_form_item + ' "' + jqForm.find('input[name=email_input]').parent().find("label").html() + '" ' + js_lang_new_form_nesessery + '

');}valid_material_form = false;}}if (jqForm.find('select[name=watch_type]').length > 0 && jqForm.find('select[name=watch_type]').find(":selected").val() == 2) { if (jqForm.find('input[name=start_date]').length > 0 && jqForm.find('input[name=start_date]').hasClass("required")) { if (jqForm.find('input[name=start_date]').val() == "") { jqForm.find('input[name=start_date]').removeClass("valid").removeClass("filled").addClass("error"); if (jqForm.find('input[name=start_date]').parent().find('div.error_box').length == 0) { jqForm.find('input[name=start_date]').after('

' + js_lang_new_form_item + ' "' + jqForm.find('input[name=start_date]').parent().find("label").html() + '" ' + js_lang_new_form_nesessery + '

'); } valid_material_form = false; } } if (jqForm.find('input[name=stop_date]').length > 0 && jqForm.find('input[name=stop_date]').hasClass("required")) { if (jqForm.find('input[name=stop_date]').val() == "") { jqForm.find('input[name=stop_date]').removeClass("valid").removeClass("filled").addClass("error"); if (jqForm.find('input[name=stop_date]').parent().find('div.error_box').length == 0) { jqForm.find('input[name=stop_date]').after('

' + js_lang_new_form_item + ' "' + jqForm.find('input[name=stop_date]').parent().find("label").html() + '" ' + js_lang_new_form_nesessery + '

'); } valid_material_form = false; } } }if (jqForm.find('input[name=captcha_code]').length > 0) {if (jqForm.find('input[name=captcha_code]').val() == "") {jqForm.find('input[name=captcha_code]').removeClass("valid").removeClass("filled").addClass("error");if (jqForm.find('input[name=captcha_code]').parent().find('label.error').length == 0) {jqForm.find('input[name=captcha_code]').parent().find("label").addClass("error");}valid_material_form = false;}}if (jqForm.find('input[name=agreed_personal_info_p_question]').length > 0) {if (typeof jqForm.find('input[name=agreed_personal_info_p_question]').attr('checked') === "undefined") {jqForm.find('input[name=agreed_personal_info_p_question]').removeClass("valid").removeClass("filled").addClass("error");if (jqForm.find('input[name=agreed_personal_info_p_question]').parent().find('div.error_box').length == 0) {jqForm.find('input[name=agreed_personal_info_p_question]').closest("div").append('

' + js_lang_new_form_nesessery_item + '

');}valid_material_form = false;}}if (typeof js_Config_product_watch_email_val_fix !== "undefined" && js_Config_product_watch_email_val_fix > 0) { //tt-watch-fixif (jqForm.find('input[name=agreed_personal_info_field_p_watch]').length > 0) {if ( jqForm.find('input[name=agreed_personal_info_field_p_watch]').prop('checked') == false ) {valid_material_form = false; } } }//console.log("testujem este :D - vysledok validacia: " + valid_material_form); return valid_material_form;} else {if (sform.start_date.value != '--' && sform.stop_date.value != '--' && sform.start_date.value > sform.stop_date.value) {sform.start_date.disabled = true;sform.stop_date.disabled = true;vex.dialog.alert("Enter the correct dates. Date of should be less than to date.");return false;} else {sform.start_date.disabled = false;sform.stop_date.disabled = false;sform.product_watch_submit.value = '1';return true;} }}function js_product_watch_set_container_status(is_watched) {if (jQuery('.flypage-guard-product').length) {jQuery('.flypage-guard-product').find('a:first').html(is_watched ? 'Goods is guarded' : 'Goods guard').end().show();}}function read_cookie(name) {var nameEQ = name +'=';var ca = document.cookie.split(';');for (var i = 0; i < ca.length; i++) {var c = ca[i];while (c.charAt(0)==' ') {c = c.substring(1, c.length);}if (c.indexOf(nameEQ) == 0) {return c.substring(nameEQ.length, c.length);}}return null;}function setCookie(c_name, value, exdays) {var exdate=new Date();exdate.setDate(exdate.getDate() + exdays);var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());document.cookie=c_name + "=" + c_value;}if ( typeof js_Config_parser_enabled !== 'undefined' && js_Config_parser_enabled ) {window.addEventListener('DOMContentLoaded', function() {if (typeof js_global_user_info == 'undefined' && !read_cookie('strazny_pes_email')) {js_product_watch_set_container_status(false);} else {js_product_watch_set_container_status(false);}}); } else {jQuery(function() {if (typeof js_global_user_info == 'undefined' && !read_cookie('strazny_pes_email')) {js_product_watch_set_container_status(false);} else {js_product_watch_set_container_status(false);}});}if ( typeof js_Config_watch_simple_form !== "undefined" && js_Config_watch_simple_form > 0 ) {var watched_variants = null;function isVariantWatched() {var finalResult = false; var productAvail = jQuery('input[name="faadd750a6fbb9ea11a94c6074db79144"]:checked'); if ( productAvail.length ) { //variant var attrName = productAvail.val().split(/[{[\s]/)[0]; attrName = attrName.replace(/_/g, ' '); if (attrName != '' && jQuery.inArray(attrName, watched_variants)>=0) { finalResult = true; } } else { finalResult = false; }js_product_watch_set_container_status(finalResult);return finalResult; }if ( typeof js_Config_parser_enabled !== 'undefined' && js_Config_parser_enabled ) {window.addEventListener('DOMContentLoaded', function() {isVariantWatched();jQuery(document).on("click", ".prod_adv_attrib_radio tr", function () {isVariantWatched();});}); } else {jQuery(function() {isVariantWatched();jQuery(document).on("click", ".prod_adv_attrib_radio tr", function () {isVariantWatched();});}); }}//]]>

Pellets HN Grizzly kal, 6,36 mm, 150 pcs - AFG-defense.eu (2024)
Top Articles
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 6310

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.