Refs #552 -- Expand all panels that contain validation errors

This commit is contained in:
Raphael Michel
2017-07-17 12:49:45 +02:00
parent 02786f4801
commit a864dabbaf
2 changed files with 7 additions and 1 deletions

View File

@@ -83,6 +83,9 @@ $(function () {
}); });
$('.collapsible').collapse(); $('.collapsible').collapse();
$(".has-error").each(function () {
$(this).closest("div.panel-collapse").collapse("show");
});
$('[data-toggle="tooltip"]').tooltip(); $('[data-toggle="tooltip"]').tooltip();

View File

@@ -27,6 +27,9 @@ $(function () {
e.preventDefault(); e.preventDefault();
}); });
$("div.collapsed").removeClass("collapsed").addClass("collapse"); $("div.collapsed").removeClass("collapsed").addClass("collapse");
$(".has-error").each(function () {
$(this).closest("div.panel-collapse").collapse("show");
});
$("#voucher-box").hide(); $("#voucher-box").hide();
$("#voucher-toggle").show(); $("#voucher-toggle").show();