various improvements in OxJS and OxUI
This commit is contained in:
parent
74b9a25387
commit
7380595c7e
48 changed files with 184 additions and 161 deletions
|
|
@ -56,7 +56,7 @@ Ox.Input = function(options, self) {
|
|||
*/
|
||||
|
||||
var self = self || {},
|
||||
that = new Ox.Element('div', self)
|
||||
that = new Ox.Element({}, self)
|
||||
.defaults({
|
||||
arrows: false,
|
||||
arrowStep: 1,
|
||||
|
|
@ -701,7 +701,7 @@ Ox.Input = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
self.onChange = function(key, value) {
|
||||
self.setOption = function(key, value) {
|
||||
var inputWidth, val;
|
||||
if (['autocomplete', 'autocompleteReplace', 'autocompleteSelect', 'autovalidate'].indexOf(key) > -1) {
|
||||
if (self.options.autocomplete && self.options.autocompleteSelect) {
|
||||
|
|
@ -806,7 +806,7 @@ Ox.Input_ = function(options, self) {
|
|||
*/
|
||||
|
||||
var self = self || {},
|
||||
that = new Ox.Element('div', self)
|
||||
that = new Ox.Element({}, self)
|
||||
.defaults({
|
||||
autocomplete: null,
|
||||
autocorrect: null,
|
||||
|
|
@ -1217,7 +1217,7 @@ Ox.Input_ = function(options, self) {
|
|||
);
|
||||
}
|
||||
|
||||
self.onChange = function(key, value) {
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'height') {
|
||||
height(value);
|
||||
} else if (key == 'width') {
|
||||
|
|
@ -1537,7 +1537,7 @@ Ox.InputElement_ = function(options, self) {
|
|||
|
||||
}
|
||||
|
||||
self.onChange = function(key, value) {
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'placeholder') {
|
||||
that.$element.hasClass('OxPlaceholder') && that.$element.val(value);
|
||||
} else if (key == 'value') {
|
||||
|
|
@ -1753,7 +1753,7 @@ Ox.Range_ = function(options, self) {
|
|||
shared functions
|
||||
*/
|
||||
|
||||
self.onChange = function(key, value) {
|
||||
self.setOption = function(key, value) {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue