From: dbs Date: Tue, 8 Feb 2011 03:50:58 +0000 (+0000) Subject: Prevent authority context menu on whitespace content X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=06c8794734c68e6e2c2d02d7c7db31c0b0e7d79f;p=working%2FEvergreen.git Prevent authority context menu on whitespace content Continuing the refinement of LP 712538, if the subfield contains only whitespace, treat it as though it were empty for the purposes of the context menu. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19401 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 8c7b8dde29..da32f11998 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1926,7 +1926,7 @@ function getAuthorityContextMenu (target, sf) { return false; } - if (sf.toString()) { + if (sf.toString().replace(/\s*/, '')) { browseAuthority(sf_popup, menu_id, target, sf, 20, page); }