From: dbs Date: Tue, 8 Feb 2011 03:49:36 +0000 (+0000) Subject: Prevent authority context menu on whitespace content X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4aa07f46984d1e9dce7123961bce041f3efc67a7;p=contrib%2FConifer.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/trunk@19399 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 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); }