Compare commits

...

1 Commits

Author SHA1 Message Date
Richard Schreiber
5aa8b6c329 Close dialog onclick on backdrop 2025-05-21 20:47:17 +02:00

View File

@@ -390,6 +390,13 @@ $(function () {
sessionStorage.removeItem('scrollpos');
}
$("dialog").on("mousedown", function (e) {
if (e.target == this) {
// dialog has no padding, so this triggers only onclick on backdrop
this.close();
}
});
$(".accordion-radio").click(function() {
var $input = $("input", this);
if (!$input.prop("checked")) $input.prop('checked', true).trigger("change");