Jquery slider Error in Admin
-
With the last WP i got a slider.min.js error in the admin section.
a.toFixed in slider.min.js
Changes some minor lines in ot-admin.js now it works again with the recent WP 4.7
Just for the records around line 526 change function added parseInt to the min max and value to prevent the a.toFixed error in slider.jsinit_numeric_slider: function(scope) {
…
…$(“.ot-numeric-slider”, this).slider({
min: parseInt(hidden.data(“min”)),
max: parseInt(hidden.data(“max”)),
step: parseInt(hidden.data(“step”)),
value: parseInt(value),
slide: function(event, ui) {
hidden.add(helper).val(ui.value).trigger(‘change’);
},
create: function()?{
hidden.val($(this).slider(‘value’));
},
change: function() {
OT_UI.parse_condition();
}
});
}
- The topic ‘Jquery slider Error in Admin’ is closed to new replies.