From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Tue, 8 Feb 2011 03:43:08 +0000 (+0000) Subject: Prevent authority context menu from being displayed on empty content (LP 712538) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ec42aba36db4a93b928c266514fd4bb9d151934f;p=evergreen%2Fmasslnc.git 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 --- 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; }