forked from 0x2620/oxjs
refactoring
This commit is contained in:
parent
ab68c4a54f
commit
9ee0742b53
6 changed files with 15 additions and 13 deletions
|
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue