[open-ils-commits] r19400 - branches/rel_2_0/Open-ILS/xul/staff_client/server/cat (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 7 22:50:29 EST 2011
Author: dbs
Date: 2011-02-07 22:50:27 -0500 (Mon, 07 Feb 2011)
New Revision: 19400
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/marcedit.js
Log:
Prevent authority context menu from being displayed on empty content (LP 712538)
It's confusing to have the authority context menu - particularly the
"Create authority" options - appear for empty content. Check to ensure
that the subfield being clicked on actually has some content before
displaying the authority context menu.
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/marcedit.js 2011-02-08 03:49:36 UTC (rev 19399)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/marcedit.js 2011-02-08 03:50:27 UTC (rev 19400)
@@ -1926,7 +1926,9 @@
return false;
}
- browseAuthority( sf_popup, menu_id, target, sf, 20, page);
+ if (sf.toString()) {
+ browseAuthority(sf_popup, menu_id, target, sf, 20, page);
+ }
return true;
}
More information about the open-ils-commits
mailing list