From: Liam Whalen Date: Tue, 1 Nov 2011 19:59:13 +0000 (-0400) Subject: Aligned the MARC editor subfields to 'start' fixes long subfield display X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a9342877ee70a8162e09076295d2a22c5eee3cd3;p=evergreen%2Fequinox.git Aligned the MARC editor subfields to 'start' fixes long subfield display When viewing a record in the MARC editor that has extremely long entries in a subfield, the output would align in the center of the subfield making the output hard to read. This patch adds an align: 'start' option to both the subfield, and the subfield code elements in the marcSubfield function to make the subfields align in a more readable manner. Signed-off-by: Liam Whalen Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 919c72979c..d3062387aa 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1707,6 +1707,7 @@ function marcSubfield (sf) { sf.@code, { value : sf.@code, class : 'plain marcSubfieldCode', + align: 'start', name : 'marcSubfieldCode', onmouseover : 'current_focus = this; getContextMenu(this, "subfield"); getTooltip(this, "subfield");', oncontextmenu : 'getContextMenu(this, "subfield");', @@ -1718,6 +1719,7 @@ function marcSubfield (sf) { { value : sf.text(), name : sf.parent().@tag + ':' + sf.@code, class : 'plain marcSubfield', + align: 'start', onmouseover : 'getTooltip(this, "subfield");', contextmenu : function (event) { getAuthorityContextMenu(event.target, sf) }, size : new String(sf.text()).length + 2,