From 06c8794734c68e6e2c2d02d7c7db31c0b0e7d79f Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 8 Feb 2011 03:50:58 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 2 +- 1 file changed, 1 insertion(+), 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 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); } -- 2.11.0