Skip to content

Commit 4649d1a

Browse files
committed
Fix mistic100#926 Wrong example
1 parent e83536f commit 4649d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ <h3>Output</h3>
414414
max: 100,
415415
value: 0
416416
},
417-
onAfterSetValue: function(rule, value) {
417+
valueSetter: function(rule, value) {
418418
var input = rule.$el.find('.rule-value-container input');
419419
input.slider('setValue', value);
420420
input.val(value); // don't know why I need it
@@ -624,7 +624,7 @@ <h3>Output</h3>
624624

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

630630
// reset builder

0 commit comments

Comments
 (0)