Skip to content

Commit

Permalink
Replace hide with d-none
Browse files Browse the repository at this point in the history
  • Loading branch information
liamkeily committed Jan 22, 2024
1 parent eb943dd commit 1b0652e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -607,12 +607,12 @@ <h3>Output</h3>
// reset builder
$('.reset').on('click', function() {
$('#builder').queryBuilder('reset');
$('#result').addClass('hide').find('pre').empty();
$('#result').addClass('d-none').find('pre').empty();
});

// get rules
$('.parse-json').on('click', function() {
$('#result').removeClass('hide')
$('#result').removeClass('d-none')
.find('pre').html(JSON.stringify(
$('#builder').queryBuilder('getRules', {
get_flags: true,
Expand All @@ -624,14 +624,14 @@ <h3>Output</h3>

$('.parse-sql').on('click', function() {
var res = $('#builder').queryBuilder('getSQL', $(this).data('stmt'), false);
$('#result').removeClass('hide')
$('#result').removeClass('d-none')
.find('pre').html(
res.sql + (res.params ? '\n\n' + JSON.stringify(res.params, undefined, 2) : '')
);
});

$('.parse-mongo').on('click', function() {
$('#result').removeClass('hide')
$('#result').removeClass('d-none')
.find('pre').html(JSON.stringify(
$('#builder').queryBuilder('getMongo'),
undefined, 2
Expand Down
2 changes: 1 addition & 1 deletion src/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ${operators.length === 1 ? `
${translate("operators", operators[0].type)}
</span>
` : ''}
<select class="form-control ${operators.length === 1 ? 'hide' : ''}" name="${rule.id}_operator">
<select class="form-control ${operators.length === 1 ? 'd-none' : ''}" name="${rule.id}_operator">
${operators.map(operator => `
${optgroup !== operator.optgroup ? `
${optgroup !== null ? `</optgroup>` : ''}
Expand Down

0 comments on commit 1b0652e

Please sign in to comment.