Commit 2e52b9d2 authored by buttle's avatar buttle

Fixed required fields after formbuilder changed class name

parent 6dd87e39
......@@ -114,10 +114,10 @@ input[type="date"], input[type="number"] {
content: '●';
visibility: visible;
}
.fb-required {
.formbuilder-required {
visibility: hidden;
}
.fb-required:after {
.formbuilder-required:after {
content: '●';
visibility: visible;
}
......@@ -24,8 +24,6 @@
<div class="row col-md-3"></div>
</div>
<script>
jQuery(function($) {
var fbRender = document.getElementById('fb-render');
......@@ -61,7 +59,7 @@ function setLimits(){
return;
}
function addRequiredMsg(){
if ($('#fb-render').find("span.fb-required").length) {
if ($('#fb-render').find("span.formbuilder-required").length) {
var firstGroup = $('#fb-render').find('.form-group').filter(':visible:first');
if (firstGroup.length) {
$("<div class='required'>● {%trans%}Required fields{%endtrans%}</div>").insertBefore(firstGroup);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment