Filter
$("#filterFeedback-question__yes").on("click", () => { const $container = $("#filterFeedback") 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")) { $("#filterFeedback-header").css("border-bottom", "none"); $("#filterFeedback-body").css("padding", "0"); } $("#filterFeedback-heading").text("Vielen Dank für Ihr Feedback!") $("#filterFeedback-question").hide() $("#filterFeedback-thanks").show() }) $("#filterFeedback-question__no").on("click", () => { const $container = $("#filterFeedback") 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 }); $("#filterFeedback-question").hide() $("#filterFeedback-heading").text("Warum waren diese Filter nicht hilfreich?") if ($container.data("show-reasons")) $("#filterFeedback-reason").show() else $("#filterFeedback-explanation").show() }) $(".filterFeedback-reason__btn").on("click", (e) => { const $container = $("#filterFeedback") 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 }); $("#filterFeedback-form__reason").text($pressedButton.text()) $("#filterFeedback-reason").hide() $("#filterFeedback-explanation").show() }) $("#filterFeedback-form").on("submit", (e) => { e.preventDefault() const $container = $("#filterFeedback") const explanation = $("#filterFeedback-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")) { $("#filterFeedback-header").css("border-bottom", "none"); $("#filterFeedback-body").css("padding", "0"); } $("#filterFeedback-heading").text("Vielen Dank für Ihr Feedback!") $("#filterFeedback-explanation").hide() $("#filterFeedback-thanks").show() })

Rasensamen RSM Rasen RSM 3 Sportrasen

4 Ergebnisse gefunden in RSM 3 Sportrasen
if ($("#categoryFeedback").data("show-reasons")) $("#categoryFeedback-explanation").hide() else $("#categoryFeedback-reason").hide() $("#categoryFeedback-question__yes").on("click", () => { const $container = $("#categoryFeedback") 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")) { $("#categoryFeedback-header").css("border-bottom", "none"); $("#categoryFeedback-body").css("padding", "0"); } $("#categoryFeedback-heading").text("Vielen Dank für Ihr Feedback!") $("#categoryFeedback-question").hide() $("#categoryFeedback-thanks").show() }) $("#categoryFeedback-question__no").on("click", () => { const $container = $("#categoryFeedback") 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 }); }) $("#categoryFeedback-close").on("click", () => { $("#categoryFeedback-question").hide() $("#categoryFeedback-thanks").show() }) $(".categoryFeedback-reason__btn").on("click", (e) => { const $container = $("#categoryFeedback") 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 }); $("#categoryFeedback-form__reason").text($pressedButton.text()) $("#categoryFeedback-reason").hide() $("#categoryFeedback-explanation").show() }) $("#categoryFeedback-form").on("submit", (e) => { e.preventDefault() const $container = $("#categoryFeedback") const explanation = $("#categoryFeedback-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")) { $("#categoryFeedback-header").css("border-bottom", "none"); $("#categoryFeedback-body").css("padding", "0"); } $("#categoryFeedback-heading").text("Vielen Dank für Ihr Feedback!") $("#categoryFeedback-question").hide() $("#categoryFeedback-thanks").show() $("#categoryFeedback-close").click() })