fix find in list icon selector

This commit is contained in:
rolux 2011-11-11 14:23:51 +00:00
parent 91f2c6fe35
commit 9aff249881

View file

@ -64,7 +64,7 @@ pandora.ui.listDialog = function(section) {
} }
}), }),
pandora.$ui.findIconItemInput = Ox.Input({ pandora.$ui.findIconItemInput = Ox.Input({
//changeOnKeypress: true, changeOnKeypress: true,
clear: true, clear: true,
placeholder: 'Find: All', placeholder: 'Find: All',
width: 128 + Ox.UI.SCROLLBAR_SIZE width: 128 + Ox.UI.SCROLLBAR_SIZE
@ -491,10 +491,10 @@ pandora.ui.listIconPanel = function(listData) {
items: function(data, callback) { items: function(data, callback) {
pandora.api.find(Ox.extend(data, { pandora.api.find(Ox.extend(data, {
query: { query: {
conditions: [ conditions: Ox.merge(
{key: 'list', value: listData.id, operator: '=='}, [{key: 'list', value: listData.id, operator: '=='}],
{key: key, value: value, operator: '='} value !== '' ? [{key: key, value: value, operator: '='}] : []
], ),
operator: '&' operator: '&'
} }
}), callback); }), callback);