fix find in icon editor for texts

This commit is contained in:
j 2013-11-04 14:20:36 +00:00
parent 40d6b927e6
commit 733c7c5c5f

View file

@ -568,8 +568,13 @@ 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: [{key: 'list', value: listData.id, operator: '=='}].concat( conditions: (
value !== '' ? [{key: key, value: value, operator: '='}] : [] ui.section == 'items'
? [{key: 'list', value: listData.id, operator: '=='}]
: []).concat(
value !== ''
? [{key: key, value: value, operator: '='}]
: []
), ),
operator: '&' operator: '&'
} }