forked from 0x2620/oxjs
some improvements to Ox.VideoPlayer
This commit is contained in:
parent
57618c850f
commit
a19c271e8f
6 changed files with 213 additions and 49 deletions
|
|
@ -729,12 +729,18 @@ Ox.Input = function(options, self) {
|
|||
}
|
||||
};
|
||||
|
||||
that.focusInput = function() {
|
||||
that.focusInput = function(select) {
|
||||
select = Ox.isUndefined(select) ? true : select;
|
||||
self.$input.focus();
|
||||
cursor(0, self.$input.val().length);
|
||||
if (select) {
|
||||
cursor(0, self.$input.val().length);
|
||||
} else {
|
||||
cursor(self.$input.val().length);
|
||||
}
|
||||
return that;
|
||||
};
|
||||
|
||||
// fixme: deprecate, options are enough
|
||||
that.value = function() {
|
||||
return self.$input.hasClass('OxPlaceholder') ? '' : self.$input.val();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue