Skip to content
Snippets Groups Projects
Commit c536dc35 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

form-builder: conditionally display search weight

parent 2467082a
No related branches found
No related tags found
No related merge requests found
...@@ -236,6 +236,14 @@ ...@@ -236,6 +236,14 @@
textarea.title = this.title textarea.title = this.title
return textarea return textarea
}) })
$('.search-wrap:not(.initialized)').each(function() {
$(this).addClass('initialized')
var $weightWrapper = $(this).siblings('.searchWeight-wrap')
$(this).find('input').change(function() {
$weightWrapper.toggle($(this).is(':checked'))
}).trigger('change')
})
// $('.name-wrap input[name=name]').val('email'); // $('.name-wrap input[name=name]').val('email');
// get all input names (used to check for uniqueness) // get all input names (used to check for uniqueness)
var allNames = []; var allNames = [];
...@@ -385,4 +393,8 @@ ...@@ -385,4 +393,8 @@
.form-wrap.form-builder .frmb .field-actions { .form-wrap.form-builder .frmb .field-actions {
z-index: 500000; z-index: 500000;
} }
.searchWeight-wrap {
display: none;
}
</style> </style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment