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();
$(".has-error").each(function () {
$(this).closest("div.panel-collapse").collapse("show");
});
$('[data-toggle="tooltip"]').tooltip();

View File

@@ -26,7 +26,10 @@ $(function () {
$(this).parent().parent().parent().find(".variations").slideToggle();
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-toggle").show();