forked from 0x2620/oxjs
improved steganography functions
This commit is contained in:
parent
3f3edac8c7
commit
1b4591dcbe
3 changed files with 47 additions and 14 deletions
|
|
@ -110,6 +110,7 @@ Ox.Filter = function(options, self) {
|
|||
float: 'left',
|
||||
});
|
||||
|
||||
Ox.print('s.o.sK', self.options.sortKeys)
|
||||
self.$limit = Ox.InputGroup({
|
||||
inputs: [
|
||||
Ox.Checkbox({
|
||||
|
|
@ -138,6 +139,11 @@ Ox.Filter = function(options, self) {
|
|||
width: 120
|
||||
}),
|
||||
Ox.Select({
|
||||
/*
|
||||
items: self.options.sortKeys.map(function(sortKey) {
|
||||
return {id: sortKey.id, title: sortKey.title[0]}; // fixme: title should not have become an array
|
||||
}),
|
||||
*/
|
||||
items: self.options.sortKeys,
|
||||
width: 128
|
||||
}),
|
||||
|
|
@ -182,6 +188,25 @@ Ox.Filter = function(options, self) {
|
|||
]
|
||||
});
|
||||
|
||||
/*
|
||||
// fixme: sortKeys have been altered, probably by some select
|
||||
Ox.print('s.o.sK', self.options.sortKeys)
|
||||
self.$sort = Ox.InputGroup({
|
||||
inputs: [
|
||||
Ox.Checkbox({
|
||||
width: 16
|
||||
}),
|
||||
Ox.Select({
|
||||
items: self.options.sortKeys,
|
||||
width: 128
|
||||
})
|
||||
],
|
||||
separators: [
|
||||
{title: 'By default, sort by', width: 112}
|
||||
]
|
||||
});
|
||||
*/
|
||||
|
||||
self.$save = Ox.InputGroup({
|
||||
inputs: [
|
||||
Ox.Checkbox({
|
||||
|
|
@ -197,7 +222,7 @@ Ox.Filter = function(options, self) {
|
|||
]
|
||||
});
|
||||
|
||||
self.$items = [self.$operator, self.$limit, self.$view, self.$save];
|
||||
self.$items = [self.$operator, self.$limit, self.$view/*, self.$sort*/, self.$save];
|
||||
|
||||
self.$form = Ox.Form({
|
||||
items: self.$items
|
||||
|
|
@ -237,7 +262,7 @@ Ox.Filter = function(options, self) {
|
|||
oldType = Ox.getObjectById(self.options.findKeys, condition.key).type,
|
||||
newType = Ox.getObjectById(self.options.findKeys, key).type,
|
||||
oldConditionType = getConditionType(oldType),
|
||||
newConditionType = getConditionType(newType);
|
||||
newConditionType = getConditionType(newType),
|
||||
changeConditionType = oldConditionType != newConditionType;
|
||||
Ox.print('old new', oldConditionType, newConditionType)
|
||||
condition.key = key;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue