1
0
Fork 0
forked from 0x2620/oxjs

trailing comma removal,

This commit is contained in:
j 2012-05-26 15:48:19 +00:00
commit 68d50978ba
44 changed files with 87 additions and 87 deletions

View file

@ -168,7 +168,7 @@ Ox.ArrayInput = function(options, self) {
self.$element.forEach(function($element, i) {
$element.data({index: i});
self.$removeButton[i].options({
title: self.$element.length == 1 ? 'close' : 'remove',
title: self.$element.length == 1 ? 'close' : 'remove'
});
self.$addButton[i].options({
disabled: self.$element.length == self.options.max

View file

@ -50,7 +50,7 @@ Ox.DateInput = function(options, self) {
id: 'weekday',
width: self.options.width.weekday
})
.bindEvent('autocomplete', changeWeekday),
.bindEvent('autocomplete', changeWeekday)
} : {}, {
day: Ox.Input({
autocomplete: Ox.range(1, Ox.getDaysInMonth(

View file

@ -112,7 +112,7 @@ Ox.Editable = function(options, self) {
element: self.options.type == 'input' ? '<span>' : '<div>',
style: 'square',
type: self.options.type,
value: formatInputValue(),
value: formatInputValue()
})
.css(self.css)
.bindEvent({

View file

@ -129,7 +129,7 @@ Ox.FileInput = function(options, self) {
left: 0,
top: 0,
width: self.options.width - 2 + 'px',
height: '64px',
height: '64px'
})
.bindEvent({
'delete': function(data) {

View file

@ -164,13 +164,13 @@ Ox.Filter = function(options, self) {
width: 208
})
],
float: 'left',
float: 'left'
});
self.$save = Ox.InputGroup({
inputs: [
self.$foo = Ox.Checkbox({
width: 16,
width: 16
}),
Ox.Input({
id: 'list',

View file

@ -15,7 +15,7 @@ Ox.FormItem = function(options, self) {
var that = Ox.Element({}, self)
.defaults({
element: null,
error: '',
error: ''
})
.options(options || {})
.addClass('OxFormItem');

View file

@ -154,7 +154,7 @@ Ox.Input = function(options, self) {
width: self.options.labelWidth
})
.css({
float: 'left', // fixme: use css rule
float: 'left' // fixme: use css rule
})
.click(function() {
// fixme: ???
@ -224,7 +224,7 @@ Ox.Input = function(options, self) {
width: self.inputWidth + 'px',
textAlign: self.options.textAlign
}, self.options.type == 'textarea' ? {
height: self.options.height - 6 + 'px',
height: self.options.height - 6 + 'px'
} : {})
)
.val(self.options.value)
@ -404,7 +404,7 @@ Ox.Input = function(options, self) {
});
if (!self.selectEventBound) {
self.$autocompleteMenu.bindEvent({
select: selectMenu,
select: selectMenu
});
self.selectEventBound = true;
}
@ -440,7 +440,7 @@ Ox.Input = function(options, self) {
})
.addClass('OxAutocompleteMenu')
.bindEvent({
click: clickMenu,
click: clickMenu
});
return menu;
}

View file

@ -155,7 +155,7 @@ Ox.ObjectArrayInput = function(options, self) {
[i == length - 1 ? 'addClass' : 'removeClass']('OxLast')
.data({index: i});
self.$removeButton[i].options({
disabled: length == 1,
disabled: length == 1
});
self.$addButton[i].options({
disabled: length == self.options.max

View file

@ -47,7 +47,7 @@ Ox.Range = function(options, self) {
trackImages: [],
trackStep: 0,
value: 0,
values: [],
values: []
})
.options(options || {})
.addClass('OxRange')
@ -233,8 +233,8 @@ Ox.Range = function(options, self) {
function setThumb(animate) {
self.$thumb.stop().animate({
marginLeft: getPx(self.options.value) - 1 + 'px',
//width: self.thumbSize + 'px'
marginLeft: getPx(self.options.value) - 1 + 'px'
//, width: self.thumbSize + 'px'
}, animate ? 250 : 0, function() {
self.options.thumbValue && self.$thumb.options({
title: self.options.value