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
|
|
@ -658,9 +658,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
self.$position.hide();
|
||||
self.$positionInput
|
||||
.options({
|
||||
value: formatPosition()
|
||||
})
|
||||
.value(formatPosition())
|
||||
.show()
|
||||
.focusInput(false);
|
||||
}
|
||||
|
|
@ -1019,6 +1017,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
.appendTo(self.$volume);
|
||||
|
||||
self.$volumeInput = Ox.Range({
|
||||
changeOnDrag: true,
|
||||
max: 1,
|
||||
min: 0,
|
||||
step: 0.001,
|
||||
|
|
@ -1916,9 +1915,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
showVolume();
|
||||
self.options.volume = Ox.limit(self.options.volume + num, 0, 1);
|
||||
setVolume(self.options.volume);
|
||||
self.$volumeInput && self.$volumeInput.options({
|
||||
value: self.options.volume
|
||||
});
|
||||
self.$volumeInput && self.$volumeInput.value(self.options.volume);
|
||||
}
|
||||
|
||||
function setVolume(volume) {
|
||||
|
|
@ -2030,8 +2027,8 @@ Ox.VideoPlayer = function(options, self) {
|
|||
function submitPositionInput() {
|
||||
self.$positionInput.hide();
|
||||
self.$position.html('').show();
|
||||
//Ox.Log('Video', '###', parsePositionInput(self.$positionInput.options('value')))
|
||||
setPosition(parsePositionInput(self.$positionInput.options('value')));
|
||||
//Ox.Log('Video', '###', parsePositionInput(self.$positionInput.value()))
|
||||
setPosition(parsePositionInput(self.$positionInput.value()));
|
||||
if (self.playOnSubmit) {
|
||||
togglePaused();
|
||||
self.$video.play();
|
||||
|
|
@ -2143,9 +2140,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
self.$volumeButton && self.$volumeButton.attr({
|
||||
src: getVolumeImageURL()
|
||||
});
|
||||
self.$volumeInput && self.$volumeInput.options({
|
||||
value: self.options.muted ? 0 : self.options.volume
|
||||
});
|
||||
self.$volumeInput && self.$volumeInput.value(
|
||||
self.options.muted ? 0 : self.options.volume
|
||||
);
|
||||
self.$volumeValue && self.$volumeValue.html(
|
||||
self.options.muted ? 0 : Math.round(self.options.volume * 100)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue