[open-ils-commits] r13842 - trunk/Open-ILS/xul/staff_client/server/cat (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Aug 14 11:39:08 EDT 2009
Author: miker
Date: 2009-08-14 11:39:05 -0400 (Fri, 14 Aug 2009)
New Revision: 13842
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul
Log:
adding proper attributes to uncontrolled subfield value textboxes to allow the default-ish context menus to work properly
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2009-08-14 15:12:44 UTC (rev 13841)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2009-08-14 15:39:05 UTC (rev 13842)
@@ -1234,7 +1234,7 @@
{ value : field.text(),
class : 'plain marcEditableControlfield',
name : 'CONTROL' + tagname,
- oncontext : 'return false();',
+ context : 'clipboard',
size : 50,
maxlength : 50 } )
);
@@ -1605,7 +1605,7 @@
if (!authority_tag_map[sf.parent(). at 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;
}
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul 2009-08-14 15:12:44 UTC (rev 13841)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul 2009-08-14 15:39:05 UTC (rev 13842)
@@ -28,9 +28,9 @@
<checkbox persist="checked" accesskey="&staff.cat.marcedit.fastItemAdd.accesskey;" label="&staff.cat.marcedit.fastItemAdd.label;" oncommand="fastItemAdd_toggle(this);" checked="false" id="fastItemAdd_checkbox"/>
<hbox id="fastItemAdd_textboxes">
<label control="fastItemAdd_callnumber" accesskey="&staff.cat.marcedit.fastItemAdd_callnumber.accesskey;" value="&staff.cat.marcedit.fastItemAdd_callnumber.label;" />
- <textbox id="fastItemAdd_callnumber" persist="value" onchange="this.setAttribute('value',this.value);"/>
+ <textbox context="clipboard" id="fastItemAdd_callnumber" persist="value" onchange="this.setAttribute('value',this.value);"/>
<label control="fastItemAdd_barcode" accesskey="&staff.cat.marcedit.fastItemAdd_barcode.accesskey;" value="&staff.cat.marcedit.fastItemAdd_barcode.label;" />
- <textbox id="fastItemAdd_barcode"/>
+ <textbox context="clipboard" id="fastItemAdd_barcode"/>
</hbox>
<button label="&staff.cat.marcedit.validate.label;" accesskey="&staff.cat.marcedit.validate.accesskey;" oncommand="validateAuthority(this);"/>
<button id="save-button" accesskey="&staff.cat.marcedit.save-button.accesskey;"/>
More information about the open-ils-commits
mailing list