From 733c7c5c5f2de154732a7d1ae5c04b814e54ceba Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 4 Nov 2013 14:20:36 +0000 Subject: [PATCH] fix find in icon editor for texts --- static/js/listDialog.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/static/js/listDialog.js b/static/js/listDialog.js index 954f77db..673d8e9e 100644 --- a/static/js/listDialog.js +++ b/static/js/listDialog.js @@ -568,8 +568,13 @@ pandora.ui.listIconPanel = function(listData) { items: function(data, callback) { pandora.api.find(Ox.extend(data, { query: { - conditions: [{key: 'list', value: listData.id, operator: '=='}].concat( - value !== '' ? [{key: key, value: value, operator: '='}] : [] + conditions: ( + ui.section == 'items' + ? [{key: 'list', value: listData.id, operator: '=='}] + : []).concat( + value !== '' + ? [{key: key, value: value, operator: '='}] + : [] ), operator: '&' }