minor changes for filter dialog

This commit is contained in:
rlx 2011-06-01 22:47:59 +00:00
parent 3e03e00a72
commit 9366bdc6d5

View file

@ -15,8 +15,8 @@ Ox.Filter <f:Ox.Element> Filter Element
Ox.Filter = function(options, self) {
var self = self || {},
that = Ox.Element({}, self)
self = self || {};
var that = Ox.Element({}, self)
.defaults({
findKeys: [],
query: {
@ -30,8 +30,7 @@ Ox.Filter = function(options, self) {
Ox.print('Ox.Filter self.options', self.options)
$.extend(self, {
conditionOperators: {
self.conditionOperators = {
date: [
{id: '', title: 'is'},
{id: '!', title: 'is not'},
@ -66,12 +65,11 @@ Ox.Filter = function(options, self) {
{id: '', title: 'contains'},
{id: '!', title: 'does not contain'}
]
},
operators: [
};
self.operators = [
{id: '&', title: 'all'},
{id: '|', title: 'any'}
]
});
];
if (!self.options.query.conditions.length) {
self.options.query.conditions = [{
@ -154,7 +152,7 @@ Ox.Filter = function(options, self) {
{id: 'ascending', title: 'ascending'},
{id: 'descending', title: 'descending'}
],
width: 96
width: 128
}),
Ox.Label({
overlap: 'left',
@ -163,7 +161,7 @@ Ox.Filter = function(options, self) {
})
],
float: 'right',
width: 168
width: 200
})
],
separators: [
@ -410,14 +408,14 @@ Ox.Filter = function(options, self) {
var $input
if (!isBetween) {
$input = Ox.Input({
width: 256
width: 288
});
} else {
$input = Ox.InputGroup({
inputs: [
Ox.Input({
id: 'start',
width: 112
width: 128
}),
/*
Ox.TimeInput({