1
0
Fork 0
forked from 0x2620/oxjs

some improvements to Ox.VideoPlayer

This commit is contained in:
rolux 2011-05-12 22:02:22 +02:00
commit a19c271e8f
6 changed files with 213 additions and 49 deletions

View file

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