mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Prevent duplicate All/None links
This commit is contained in:
@@ -234,7 +234,10 @@ var form_handlers = function (el) {
|
|||||||
dependency.closest('.form-group').find('input[name=' + dependency.attr("name") + ']').on("dp.change", update);
|
dependency.closest('.form-group').find('input[name=' + dependency.attr("name") + ']').on("dp.change", update);
|
||||||
});
|
});
|
||||||
|
|
||||||
el.find(".scrolling-multiple-choice").each(function () {
|
el.find("div.scrolling-multiple-choice").each(function () {
|
||||||
|
if ($(this).find(".choice-options-all").length > 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var $small = $("<small>");
|
var $small = $("<small>");
|
||||||
var $a_all = $("<a>").addClass("choice-options-all").attr("href", "#").text(gettext("All"));
|
var $a_all = $("<a>").addClass("choice-options-all").attr("href", "#").text(gettext("All"));
|
||||||
var $a_none = $("<a>").addClass("choice-options-none").attr("href", "#").text(gettext("None"));
|
var $a_none = $("<a>").addClass("choice-options-none").attr("href", "#").text(gettext("None"));
|
||||||
|
|||||||
Reference in New Issue
Block a user