Skip to content

Commit

Permalink
Fix #926 Wrong example
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Oct 9, 2021
1 parent e83536f commit 4649d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ <h3>Output</h3>
max: 100,
value: 0
},
onAfterSetValue: function(rule, value) {
valueSetter: function(rule, value) {
var input = rule.$el.find('.rule-value-container input');
input.slider('setValue', value);
input.val(value); // don't know why I need it
Expand Down Expand Up @@ -624,7 +624,7 @@ <h3>Output</h3>

// set rules from SQL
$('.set-sql').on('click', function() {
$('#builder').queryBuilder('setRulesFromSQL', 'username NOT LIKE "Mistic%" OR price BETWEEN 100 OR 200 OR NOT (category IN(1, 2) AND rate <= 2)');
$('#builder').queryBuilder('setRulesFromSQL', 'username NOT LIKE "Mistic%" OR price BETWEEN 100 OR 200 OR NOT (category IN(1, 2) AND rate <= 20)');
});

// reset builder
Expand Down

0 comments on commit 4649d1a

Please sign in to comment.