forked from 0x2620/oxjs
form elements rewrite, part 2
This commit is contained in:
parent
fe303bf2b0
commit
074902d079
33 changed files with 163 additions and 153 deletions
|
|
@ -1875,20 +1875,18 @@ Ox.Range_ = function(options, self) {
|
|||
width: thumbWidth + 'px'
|
||||
}, self.options.animate ? animate : 0, function() {
|
||||
if (self.options.thumbValue) {
|
||||
$thumb.options({
|
||||
value: self.options.valueNames ?
|
||||
self.options.valueNames[self.options.value] :
|
||||
self.options.value
|
||||
});
|
||||
$thumb.value(
|
||||
value: self.options.valueNames
|
||||
? self.options.valueNames[self.options.value]
|
||||
: self.options.value
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
function setValue(val, animate) {
|
||||
val = Ox.limit(val, self.options.min, self.options.max);
|
||||
if (val != self.options.value) {
|
||||
that.options({
|
||||
value: val
|
||||
});
|
||||
that.value(val);
|
||||
setThumb(animate);
|
||||
that.triggerEvent('change', {value: val});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue