From 4aa07f46984d1e9dce7123961bce041f3efc67a7 Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 8 Feb 2011 03:49:36 +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/trunk@19399 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 ed7c4af09c..71c8c4fd0c 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1928,7 +1928,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