[open-ils-commits] r19399 - trunk/Open-ILS/xul/staff_client/server/cat (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 7 22:49:38 EST 2011
Author: dbs
Date: 2011-02-07 22:49:36 -0500 (Mon, 07 Feb 2011)
New Revision: 19399
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
Log:
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.
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2011-02-08 03:43:08 UTC (rev 19398)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2011-02-08 03:49:36 UTC (rev 19399)
@@ -1928,7 +1928,7 @@
return false;
}
- if (sf.toString()) {
+ if (sf.toString().replace(/\s*/, '')) {
browseAuthority(sf_popup, menu_id, target, sf, 20, page);
}
More information about the open-ils-commits
mailing list