From: Dan Scott Date: Tue, 9 Oct 2012 20:49:09 +0000 (-0400) Subject: Authority popups are empty: fix dojo.query() usage X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3063f2e64598010e56ca13d194515d44f38784be;p=evergreen%2Fpines.git Authority popups are empty: fix dojo.query() usage When you right-click on a controllable field to display the contents of the matching authority records, the contents of the matching authority records simply appear as empty grey boxes. This is another case of needing to iterate over multiple values separately rather than using one convenient CSS selector. Signed-off-by: Dan Scott Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 6abd005ff9..39fcca57b4 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1853,7 +1853,13 @@ function buildAuthorityPopup (entry_text, record, auth_org, auth_id, sf_popup, t } submenu.appendChild(popup); - dojo.query('datafield[tag^="1"], datafield[tag^="4"], datafield[tag^="5"]', record).forEach(function(field) { + dojo.query('datafield[tag^="1"]', record).forEach(function(field) { + buildAuthorityPopupSelector(field, grid, auth_org, auth_id); + }); + dojo.query('datafield[tag^="4"]', record).forEach(function(field) { + buildAuthorityPopupSelector(field, grid, auth_org, auth_id); + }); + dojo.query('datafield[tag^="5"]', record).forEach(function(field) { buildAuthorityPopupSelector(field, grid, auth_org, auth_id); });