Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Jquery slider Error in Admin

$
0
0

Replies: 0

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.js

init_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();
}
});
}


Viewing all articles
Browse latest Browse all 59525

Trending Articles