1
0
Fork 0
forked from 0x2620/oxjs

refactoring

This commit is contained in:
rolux 2012-05-28 18:21:00 +02:00
commit 9ee0742b53
6 changed files with 15 additions and 13 deletions

View file

@ -102,7 +102,7 @@ Ox.FileButton = function(options, self) {
if (key == 'disabled') {
self.$button.options({disabled: value});
self.$input[value ? 'hide' : 'show']();
} else if (key == title) {
} else if (key == 'title') {
self.$button.options({title: value});
}
}

View file

@ -848,7 +848,7 @@ Ox.Input = function(options, self) {
}
self.setOption = function(key, value) {
var inputWidth, val;
var inputWidth;
if (['autocomplete', 'autocompleteReplace', 'autocompleteSelect', 'autovalidate'].indexOf(key) > -1) {
if (self.options.autocomplete && self.options.autocompleteSelect) {
self.$autocompleteMenu = constructAutocompleteMenu();