原文
");
xajax_UpdateAttributeFieldsFloatingBasket(xajax.getFormValues('AttributeBasketForm'), '', '', $('#ProductAmount').val());
}
function updateQuotationCount(value) {
$('.QuotationCountInner').find('small').html(value);
}
',
prevArrow: '',
infinite: false
});
$('.product__image').lightGallery({
selector: '.product__image span'
});
}
function InitProductRelevant() {
InitOwlCarousel('relevant-products', 'relevant-products-nav');
InitProtom("#relevant-products");
$('#relevant-products .show__prices').matchHeight();
}
function InitViewedRecently() {
$("#recently-viewed-products-container").show();
InitOwlCarousel("recently-viewed-products", "recently-viewed-products-nav");
InitProtom("#recently-viewed-products");
}
function InitMostViewed() {
$("#most-viewed-products-container").show();
InitOwlCarousel("most-viewed-products", "most-viewed-products-nav");
InitProtom("#most-viewed-products");
$('#most-viewed-products .show__prices').matchHeight();
}
function InitViewedByOthers() {
$("#products-viewed-by-others-container").show();
InitOwlCarousel("products-viewed-by-others", "products-viewed-by-others-nav");
InitProtom("#products-viewed-by-others");
}
function ShowOrderUploadDialog(id) {
$('input[name=product_upload_id]').val(id);
const Form = $('.dialog.dialog__product-upload .product-upload__form');
if (Form.is(":hidden")) {
Form.show();
}
$('.product-upload__loader').hide();
$('#OrderUploadDialog').parent().find("button").each(function () {
if ($(this).text() == 'Add file') {
$(this).attr('disabled', false).removeClass('ui-state-disabled');
}
});
$('#OrderUploadProcess').hide();
const formElem = $('#OrderUploadForm');
const uploadfile = formElem.find('#uploadfile');
uploadfile.val(''); // opschoning tbv FF
uploadfile.replaceWith(uploadfile.clone()); // opschoning tbv IE
formElem.show();
formElem.find('#fieldid').val(id);
$('#OrderUploadDialog').dialog('open');
}
function SortReviews(sType) {
// Alle reviews ophalen.
const Reviews = $('.ReviewRow-Hidden');
// Alles even tonen. later kunnen we op basis van de instelling dit weer juist zetten.
Reviews.removeClass('hideByStart');
// Sorteren.
switch (sType) {
case 'DateCreatedNew':
// Nieuwste datum eerst (hoogste id)
Reviews.sort(function (a, b) {
return $(b).attr("data-review-id") - $(a).attr("data-review-id")
});
break;
case 'DateCreatedOld':
// Oudste datum eerst (laagste id)
Reviews.sort(function (a, b) {
return $(a).attr("data-review-id") - $(b).attr("data-review-id")
});
break;
case 'PointsHigh':
// Hoogste score eerst
Reviews.sort(function (a, b) {
return $(b).attr("data-review-points") - $(a).attr("data-review-points")
});
break;
case 'PointsLow':
// Laagste score eerst
Reviews.sort(function (a, b) {
return $(a).attr("data-review-points") - $(b).attr("data-review-points")
});
break;
}
// Items per page weer toepassen. (dit alleen als die niet is uitgeklapt).
if ($("#AddMore").is(":visible")) {
Reviews.each(function (index) {
if (index >= 5) {
$(this).addClass('hideByStart');
$("#AddMore").show();
}
});
}
// Gesoorteerde waarden teruggeven.
$("#reviews").html(Reviews);
}
function ActivateThumb() {
const id = $('.product__image .slick-current span').data('id');
$('.product__thumb span').removeClass('thumb--active');
if (id window.innerWidth || height > window.innerHeight) {
width = window.innerWidth * 0.98;
height = window.innerHeight * 0.98;
}
$('#AskAQuestionDialog').dialog({
autoOpen: false,
dialogClass: 'product_askaquestion_dialog',
width: width,
height: height,
modal: true,
resizable: false,
buttons: {
"Cancel": {
text: 'Cancel',
class: 'StandardButton btn btn-default',
click: function(){
$(this).dialog('close');
}
},
"Submit": {
text: 'Send',
class: 'StandardButton ImportantButton btn btn-primary hook__product-ask-a-question',
data: {
"product-id": 843701751
},
click: function(){
$(this).dialog('close');
}
}
}
});
$('#AskAQuestionDialogConfirm').dialog({
autoOpen: false,
dialogClass: 'product_askaquestion_dialog_confirm',
width: 600,
height: 350,
modal: true,
resizable: false,
buttons: {
"Continue": {
text: 'Continue shopping',
class: 'StandardButton btn btn-default',
click: function() {
$(this).dialog('close');
}
}
}
});
//Headers van ask a question dialogs verbergen.
$('.product_askaquestion_dialog .ui-dialog-titlebar').hide();
$('.product_askaquestion_dialog_confirm .ui-dialog-titlebar').hide();
}
Product added to your quotation. Go to the quote page to complete your quotation request, we will contact you as soon as possible.