From ec42aba36db4a93b928c266514fd4bb9d151934f Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 8 Feb 2011 03:43:08 +0000 Subject: [PATCH] Prevent authority context menu from being displayed on empty content (LP 712538) It's confusing to have the authority context menu - particularly the "Create authority" options - appear for empty content. Check to ensure that the subfield being clicked on actually has some content before displaying the authority context menu. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19398 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 6937f94ab5..ed7c4af09c 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1928,7 +1928,9 @@ function getAuthorityContextMenu (target, sf) { return false; } - browseAuthority( sf_popup, menu_id, target, sf, 20, page); + if (sf.toString()) { + browseAuthority(sf_popup, menu_id, target, sf, 20, page); + } return true; } -- 2.43.2