From e65b2777f3aed7de2c0bb1e589c8646c182a8bae Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 19 Aug 2009 08:19:32 +0000 Subject: [PATCH] backport part of changeset 13842 for working clipboard context menus in marc editor git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@13877 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 4 +- Open-ILS/xul/staff_client/server/cat/marcedit.xul | 86 +++++++++++------------ 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index f4bde78580..13909485db 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1181,7 +1181,7 @@ function marcControlfield (field) { { value : field.text(), class : 'plain marcEditableControlfield', name : 'CONTROL' + tagname, - oncontext : 'return false();', + context : 'clipboard', size : 50, maxlength : 50 } ) ); @@ -1517,7 +1517,7 @@ function getAuthorityContextMenu (target, sf) { if (!authority_tag_map[sf.parent().@tag]) { sf_popup.appendChild(createLabel( { value : $('catStrings').getString('staff.cat.marcedit.not_authority_field.label') } ) ); - target.setAttribute('context', menu_id); + target.setAttribute('context', 'clipboard'); return false; } diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.xul b/Open-ILS/xul/staff_client/server/cat/marcedit.xul index e72d37909e..1f96a3fc4d 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.xul +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.xul @@ -70,105 +70,105 @@ -- 2.11.0