Suchergebnisse für: Bed Box


if ($("#searchFeedback").data("show-reasons")) $("#searchFeedback-explanation").hide() else $("#searchFeedback-reason").hide() $("#searchFeedback-question__yes").on("click", () => { const $container = $("#searchFeedback") const data = { id: $container.data("id"), type: $container.attr("id"), url: window.location.href, yesOrNo: 'yes' }; $.ajax({ type: "POST", url: "/rest/pollfeedback/", data, error: console.log }); if ($container.data("has-no-thanks")) { $("#searchFeedback-header").css("border-bottom", "none"); $("#searchFeedback-body").css("padding", "0"); } $("#searchFeedback-heading").text("Vielen Dank für Ihr Feedback!") $("#searchFeedback-question").hide() $("#searchFeedback-thanks").show() }) $("#searchFeedback-question__no").on("click", () => { const $container = $("#searchFeedback") const data = { id: $container.data("id"), type: $container.attr("id"), url: window.location.href, yesOrNo: 'no' }; $.ajax({ type: "POST", url: "/rest/pollfeedback/", data, error: console.log }); }) $("#searchFeedback-close").on("click", () => { if ($("#searchFeedback").data("has-no-thanks")) { $("#searchFeedback-header").css("border-bottom", "none"); $("#searchFeedback-body").css("padding", "0"); } $("#searchFeedback-heading").text("Vielen Dank für Ihr Feedback!") $("#searchFeedback-question").hide() $("#searchFeedback-thanks").show() }) $(".searchFeedback-reason__btn").on("click", (e) => { const $container = $("#searchFeedback") const $pressedButton = $(e.target) const reason = $pressedButton.data("reason") const data = { id: $container.data("id"), reason }; $.ajax({ type: "POST", url: "/rest/pollfeedback-reason/", data, error: console.log }); $("#searchFeedback-form__reason").text($pressedButton.text()) $("#searchFeedback-reason").hide() $("#searchFeedback-explanation").show() }) $("#searchFeedback-form").on("submit", (e) => { e.preventDefault() const $container = $("#searchFeedback") const explanation = $("#searchFeedback-form__feedback").val() const data = { id: $container.data("id"), explanation }; $.ajax({ type: "POST", url: "/rest/pollfeedback-explanation/", data, error: console.log }); if ($container.data("has-no-thanks")) { $("#searchFeedback-header").css("border-bottom", "none"); $("#searchFeedback-body").css("padding", "0"); } $("#searchFeedback-heading").text("Vielen Dank für Ihr Feedback!") $("#searchFeedback-question").hide() $("#searchFeedback-thanks").show() $("#searchFeedback-close").click() })
Käuferschutz
gut 4.46/5.00