diff --git a/static/js/pandora/namesDialog.js b/static/js/pandora/namesDialog.js index c7fb80ba8..4d4e9af42 100644 --- a/static/js/pandora/namesDialog.js +++ b/static/js/pandora/namesDialog.js @@ -25,11 +25,7 @@ pandora.ui.namesDialog = function() { operator: '|' }; $list.options({ - items: function(data, callback) { - return pandora.api.findNames(Ox.extend(data, { - query: query - }), callback); - } + query: query, }); } }), diff --git a/static/js/pandora/titlesDialog.js b/static/js/pandora/titlesDialog.js index b0c71148a..6ee5e36fa 100644 --- a/static/js/pandora/titlesDialog.js +++ b/static/js/pandora/titlesDialog.js @@ -23,11 +23,7 @@ pandora.ui.titlesDialog = function() { operator: '|' }; $list.options({ - items: function(data, callback) { - return pandora.api.findTitles(Ox.extend(data, { - query: query - }), callback); - } + query: query }); } }), diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index d1be264f2..5880b7b2b 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -360,16 +360,13 @@ pandora.ui.usersDialog = function() { ], columnsRemovable: true, columnsVisible: true, - items: function(data, callback) { - pandora.api.findUsers(Ox.extend(data, { - query: { - conditions: [ - {key: 'level', value: 'guest', operator: '!='}, - {key: 'level', value: 'robot', operator: '!='} - ], - operator: '&' - } - }), callback); + items: pandora.api.findUsers, + query: { + conditions: [ + {key: 'level', value: 'guest', operator: '!='}, + {key: 'level', value: 'robot', operator: '!='} + ], + operator: '&' }, keys: ['notes', 'groups'], max: -1, @@ -976,11 +973,7 @@ pandora.ui.usersDialog = function() { operator: key == 'all' && value ? '|' : '&' }; $list.options({ - items: function(data, callback) { - return pandora.api.findUsers(Ox.extend(data, { - query: query - }), callback); - } + query: query }); }