From edfc875294791b2eca6a4dc7bef3a0f2d1f1891d Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 14 Aug 2009 15:39:05 +0000 Subject: [PATCH] adding proper attributes to uncontrolled subfield value textboxes to allow the default-ish context menus to work properly git-svn-id: svn://svn.open-ils.org/ILS/trunk@13842 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 4 ++-- Open-ILS/xul/staff_client/server/cat/marcedit.xul | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index d5eb0bd38b..f7e0e2b7ee 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1234,7 +1234,7 @@ function marcControlfield (field) { { value : field.text(), class : 'plain marcEditableControlfield', name : 'CONTROL' + tagname, - oncontext : 'return false();', + context : 'clipboard', size : 50, maxlength : 50 } ) ); @@ -1605,7 +1605,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 38ed546f84..b47ea72e94 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.xul +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.xul @@ -28,9 +28,9 @@