1
0
Fork 0
forked from 0x2620/oxjs

allow for getting 'save list' values from filter

This commit is contained in:
rlx 2011-11-11 15:48:54 +00:00
commit 21b505b4c8
3 changed files with 15 additions and 2 deletions

View file

@ -181,6 +181,7 @@ Ox.Filter = function(options, self) {
}),
Ox.Input({
id: 'list',
placeholder: 'Untitled',
width: 128
})
],
@ -823,6 +824,18 @@ Ox.Filter = function(options, self) {
that.triggerEvent('change', {query: query});
}
// fixme: is this the best way/name?
that.getList = function() {
if (self.$save) {
var value = self.$save.value();
return {
save: value[0],
name: value[1],
query: self.options.query
};
}
};
return that;
};